﻿Imports System.Data.SqlClient
Imports MySql.Data.MySqlClient

Public Class frmHangHoa
    Inherits System.Windows.Forms.Form
#Region " Windows Form Designer generated code "

    Public Sub New()
        MyBase.New()

        'This call is required by the Windows Form Designer.
        InitializeComponent()

        'Add any initialization after the InitializeComponent() call

    End Sub

    'Form overrides dispose to clean up the component list.
    Protected Overloads Overrides Sub Dispose(ByVal disposing As Boolean)
        If disposing Then
            If Not (components Is Nothing) Then
                components.Dispose()
            End If
        End If
        MyBase.Dispose(disposing)
    End Sub

    'Required by the Windows Form Designer
    Private components As System.ComponentModel.IContainer

    'NOTE: The following procedure is required by the Windows Form Designer
    'It can be modified using the Windows Form Designer.  
    'Do not modify it using the code editor.
    Friend WithEvents btnNew As System.Windows.Forms.Button
    Friend WithEvents btnSave As System.Windows.Forms.Button
    Friend WithEvents btnDelete1 As System.Windows.Forms.Button
    Friend WithEvents BtnClose As System.Windows.Forms.Button
    Friend WithEvents TxtHanDung As System.Windows.Forms.TextBox
    Friend WithEvents Label10 As System.Windows.Forms.Label
    Friend WithEvents TxtMax As System.Windows.Forms.TextBox
    Friend WithEvents Label9 As System.Windows.Forms.Label
    Friend WithEvents TxtMin As System.Windows.Forms.TextBox
    Friend WithEvents Label8 As System.Windows.Forms.Label
    Friend WithEvents TxtGiaSYT As System.Windows.Forms.TextBox
    Friend WithEvents Label7 As System.Windows.Forms.Label
    Friend WithEvents TxtGiaBan As System.Windows.Forms.TextBox
    Friend WithEvents Label6 As System.Windows.Forms.Label
    Friend WithEvents TxtTenNhomHH As System.Windows.Forms.TextBox
    Friend WithEvents Label5 As System.Windows.Forms.Label
    Friend WithEvents txtTen_HD As System.Windows.Forms.TextBox
    Friend WithEvents txtTen_BD As System.Windows.Forms.TextBox
    Friend WithEvents txtMa_HH As System.Windows.Forms.TextBox
    Friend WithEvents Label4 As System.Windows.Forms.Label
    Friend WithEvents Label3 As System.Windows.Forms.Label
    Friend WithEvents Label2 As System.Windows.Forms.Label
    Friend WithEvents Label1 As System.Windows.Forms.Label
    Friend WithEvents grid_DanhSachHangHoa As System.Windows.Forms.DataGridView
    Friend WithEvents DataSetForm_Don As DAKNONG.DataSetForm_Don
    Friend WithEvents TxtQC_Thung As System.Windows.Forms.TextBox
    Friend WithEvents Label12 As System.Windows.Forms.Label
    Friend WithEvents TxtDV_Thung As System.Windows.Forms.TextBox
    Friend WithEvents TxtDV_Chan As System.Windows.Forms.TextBox
    Friend WithEvents TxtQC_Chan As System.Windows.Forms.TextBox
    Friend WithEvents TxtDV_Le As System.Windows.Forms.TextBox
    Friend WithEvents TxtQC_Le As System.Windows.Forms.TextBox
    Friend WithEvents CboNhomHH As MTGCComboBox
    Friend WithEvents CboNhomDC As MTGCComboBox
    Friend WithEvents TxtTenNhomDC As System.Windows.Forms.TextBox
    Friend WithEvents Label13 As System.Windows.Forms.Label
    Friend WithEvents TxtChietKhau As System.Windows.Forms.TextBox
    Friend WithEvents Label14 As System.Windows.Forms.Label
    Friend WithEvents DataSetFormDonBindingSource As System.Windows.Forms.BindingSource
    Friend WithEvents TabMain As System.Windows.Forms.TabControl
    Friend WithEvents TabThongTin As System.Windows.Forms.TabPage
    Friend WithEvents TabTimKiem As System.Windows.Forms.TabPage
    Friend WithEvents Label16 As System.Windows.Forms.Label
    Friend WithEvents txtMaSearch As System.Windows.Forms.TextBox
    Friend WithEvents btnTimKiem As System.Windows.Forms.Button
    Friend WithEvents txtTenSearch As System.Windows.Forms.TextBox
    Friend WithEvents Label11 As System.Windows.Forms.Label
    Friend WithEvents gridSearch As System.Windows.Forms.DataGridView
    Friend WithEvents Label17 As System.Windows.Forms.Label
    Friend WithEvents txtDieuKien As System.Windows.Forms.TextBox
    Friend WithEvents Label15 As System.Windows.Forms.Label
    Friend WithEvents txtSDK As System.Windows.Forms.TextBox
    Friend WithEvents Label20 As System.Windows.Forms.Label
    Friend WithEvents txtDonGiaHuyen As System.Windows.Forms.TextBox
    Friend WithEvents Label18 As System.Windows.Forms.Label
    Friend WithEvents txtDonGiaTinh As System.Windows.Forms.TextBox
    Friend WithEvents Label19 As System.Windows.Forms.Label
    Friend WithEvents txtDonGiaMua As System.Windows.Forms.TextBox
    Friend WithEvents Label21 As System.Windows.Forms.Label
    Friend WithEvents txtDonGiaXa As System.Windows.Forms.TextBox
    Friend WithEvents Label22 As System.Windows.Forms.Label
    Friend WithEvents txtGhiChu As System.Windows.Forms.TextBox
    Friend WithEvents chkbox_tinhtrang As System.Windows.Forms.CheckBox
    Friend WithEvents Label23 As System.Windows.Forms.Label
    Friend WithEvents Cbo_NhaCungCap As MTGCComboBox
    Friend WithEvents txtTenNhaCungCap As System.Windows.Forms.TextBox
    Friend WithEvents Label24 As System.Windows.Forms.Label
    Friend WithEvents txtVAT As System.Windows.Forms.TextBox
    Friend WithEvents sdkDataGridViewTextBoxColumn As System.Windows.Forms.DataGridViewTextBoxColumn
    Friend WithEvents vatDataGridViewTextBoxColumn As System.Windows.Forms.DataGridViewTextBoxColumn
    Friend WithEvents dkbaoquanDataGridViewTextBoxColumn As System.Windows.Forms.DataGridViewTextBoxColumn
    Friend WithEvents dongia_muaDataGridViewTextBoxColumn As System.Windows.Forms.DataGridViewTextBoxColumn
    Friend WithEvents dongia_tinhDataGridViewTextBoxColumn As System.Windows.Forms.DataGridViewTextBoxColumn
    Friend WithEvents dongia_huyenDataGridViewTextBoxColumn As System.Windows.Forms.DataGridViewTextBoxColumn
    Friend WithEvents dongia_xaDataGridViewTextBoxColumn As System.Windows.Forms.DataGridViewTextBoxColumn
    Friend WithEvents ghichuDataGridViewTextBoxColumn As System.Windows.Forms.DataGridViewTextBoxColumn
    Friend WithEvents tinhtrangDataGridViewTextBoxColumn As System.Windows.Forms.DataGridViewTextBoxColumn
    Friend WithEvents colMaNhaCungCap As System.Windows.Forms.DataGridViewTextBoxColumn
    Friend WithEvents MahanghoaDataGridViewTextBoxColumn As System.Windows.Forms.DataGridViewTextBoxColumn
    Friend WithEvents TenbietduocDataGridViewTextBoxColumn As System.Windows.Forms.DataGridViewTextBoxColumn
    Friend WithEvents TenhoaduocDataGridViewTextBoxColumn As System.Windows.Forms.DataGridViewTextBoxColumn
    Friend WithEvents DonvithungDataGridViewTextBoxColumn As System.Windows.Forms.DataGridViewTextBoxColumn
    Friend WithEvents QuicachthungDataGridViewTextBoxColumn As System.Windows.Forms.DataGridViewTextBoxColumn
    Friend WithEvents DonvibanchanDataGridViewTextBoxColumn As System.Windows.Forms.DataGridViewTextBoxColumn
    Friend WithEvents QuicachbanchanDataGridViewTextBoxColumn As System.Windows.Forms.DataGridViewTextBoxColumn
    Friend WithEvents DonvibanleDataGridViewTextBoxColumn As System.Windows.Forms.DataGridViewTextBoxColumn
    Friend WithEvents QuicachbanleDataGridViewTextBoxColumn As System.Windows.Forms.DataGridViewTextBoxColumn
    Friend WithEvents DongiaboDataGridViewTextBoxColumn As System.Windows.Forms.DataGridViewTextBoxColumn
    Friend WithEvents DongiabanDataGridViewTextBoxColumn As System.Windows.Forms.DataGridViewTextBoxColumn
    Friend WithEvents ChietkhauDataGridViewTextBoxColumn As System.Windows.Forms.DataGridViewTextBoxColumn
    Friend WithEvents colMaNhomHangHoa As System.Windows.Forms.DataGridViewTextBoxColumn
    Friend WithEvents colMaDuocChinh As System.Windows.Forms.DataGridViewTextBoxColumn
    Friend WithEvents HandungDataGridViewTextBoxColumn As System.Windows.Forms.DataGridViewTextBoxColumn
    Friend WithEvents MinDataGridViewTextBoxColumn As System.Windows.Forms.DataGridViewTextBoxColumn
    Friend WithEvents MaxDataGridViewTextBoxColumn As System.Windows.Forms.DataGridViewTextBoxColumn
    Friend WithEvents DataSetFormDonBindingSource1 As System.Windows.Forms.BindingSource
    Friend WithEvents Label25 As System.Windows.Forms.Label
    Friend WithEvents TextBoxVat As System.Windows.Forms.TextBox
    Friend WithEvents MahanghoaDataGridViewTextBoxColumn1 As System.Windows.Forms.DataGridViewTextBoxColumn
    Friend WithEvents TenbietduocDataGridViewTextBoxColumn1 As System.Windows.Forms.DataGridViewTextBoxColumn
    Friend WithEvents TenhoaduocDataGridViewTextBoxColumn1 As System.Windows.Forms.DataGridViewTextBoxColumn
    Friend WithEvents DonvithungDataGridViewTextBoxColumn1 As System.Windows.Forms.DataGridViewTextBoxColumn
    Friend WithEvents QuicachthungDataGridViewTextBoxColumn1 As System.Windows.Forms.DataGridViewTextBoxColumn
    Friend WithEvents DonvibanchanDataGridViewTextBoxColumn1 As System.Windows.Forms.DataGridViewTextBoxColumn
    Friend WithEvents QuicachbanchanDataGridViewTextBoxColumn1 As System.Windows.Forms.DataGridViewTextBoxColumn
    Friend WithEvents DonvibanleDataGridViewTextBoxColumn1 As System.Windows.Forms.DataGridViewTextBoxColumn
    Friend WithEvents QuicachbanleDataGridViewTextBoxColumn1 As System.Windows.Forms.DataGridViewTextBoxColumn
    Friend WithEvents DongiaboDataGridViewTextBoxColumn1 As System.Windows.Forms.DataGridViewTextBoxColumn
    Friend WithEvents DongiabanDataGridViewTextBoxColumn1 As System.Windows.Forms.DataGridViewTextBoxColumn
    Friend WithEvents ChietkhauDataGridViewTextBoxColumn1 As System.Windows.Forms.DataGridViewTextBoxColumn
    Friend WithEvents ManhomhanghoaDataGridViewTextBoxColumn As System.Windows.Forms.DataGridViewTextBoxColumn
    Friend WithEvents MaduocchinhDataGridViewTextBoxColumn As System.Windows.Forms.DataGridViewTextBoxColumn
    Friend WithEvents HandungDataGridViewTextBoxColumn1 As System.Windows.Forms.DataGridViewTextBoxColumn
    Friend WithEvents MinDataGridViewTextBoxColumn1 As System.Windows.Forms.DataGridViewTextBoxColumn
    Friend WithEvents MaxDataGridViewTextBoxColumn1 As System.Windows.Forms.DataGridViewTextBoxColumn
    Friend WithEvents SdkDataGridViewTextBoxColumn1 As System.Windows.Forms.DataGridViewTextBoxColumn
    Friend WithEvents DkbaoquanDataGridViewTextBoxColumn1 As System.Windows.Forms.DataGridViewTextBoxColumn
    Friend WithEvents DongiamuaDataGridViewTextBoxColumn As System.Windows.Forms.DataGridViewTextBoxColumn
    Friend WithEvents DongiatinhDataGridViewTextBoxColumn As System.Windows.Forms.DataGridViewTextBoxColumn
    Friend WithEvents DongiahuyenDataGridViewTextBoxColumn As System.Windows.Forms.DataGridViewTextBoxColumn
    Friend WithEvents DongiaxaDataGridViewTextBoxColumn As System.Windows.Forms.DataGridViewTextBoxColumn
    Friend WithEvents GhichuDataGridViewTextBoxColumn1 As System.Windows.Forms.DataGridViewTextBoxColumn
    Friend WithEvents TinhtrangDataGridViewTextBoxColumn1 As System.Windows.Forms.DataGridViewTextBoxColumn
    Friend WithEvents ManhacungcapDataGridViewTextBoxColumn As System.Windows.Forms.DataGridViewTextBoxColumn
    Friend WithEvents VatDataGridViewTextBoxColumn1 As System.Windows.Forms.DataGridViewTextBoxColumn
    Friend WithEvents Button1 As System.Windows.Forms.Button
    <System.Diagnostics.DebuggerStepThrough()> Private Sub InitializeComponent()
        Me.components = New System.ComponentModel.Container
        Dim resources As System.ComponentModel.ComponentResourceManager = New System.ComponentModel.ComponentResourceManager(GetType(frmHangHoa))
        Dim DataGridViewCellStyle1 As System.Windows.Forms.DataGridViewCellStyle = New System.Windows.Forms.DataGridViewCellStyle
        Dim DataGridViewCellStyle2 As System.Windows.Forms.DataGridViewCellStyle = New System.Windows.Forms.DataGridViewCellStyle
        Dim DataGridViewCellStyle3 As System.Windows.Forms.DataGridViewCellStyle = New System.Windows.Forms.DataGridViewCellStyle
        Dim DataGridViewCellStyle4 As System.Windows.Forms.DataGridViewCellStyle = New System.Windows.Forms.DataGridViewCellStyle
        Dim DataGridViewCellStyle5 As System.Windows.Forms.DataGridViewCellStyle = New System.Windows.Forms.DataGridViewCellStyle
        Dim DataGridViewCellStyle6 As System.Windows.Forms.DataGridViewCellStyle = New System.Windows.Forms.DataGridViewCellStyle
        Dim DataGridViewCellStyle7 As System.Windows.Forms.DataGridViewCellStyle = New System.Windows.Forms.DataGridViewCellStyle
        Me.btnSave = New System.Windows.Forms.Button
        Me.btnNew = New System.Windows.Forms.Button
        Me.btnDelete1 = New System.Windows.Forms.Button
        Me.BtnClose = New System.Windows.Forms.Button
        Me.Button1 = New System.Windows.Forms.Button
        Me.TxtHanDung = New System.Windows.Forms.TextBox
        Me.Label10 = New System.Windows.Forms.Label
        Me.TxtMax = New System.Windows.Forms.TextBox
        Me.Label9 = New System.Windows.Forms.Label
        Me.TxtMin = New System.Windows.Forms.TextBox
        Me.Label8 = New System.Windows.Forms.Label
        Me.TxtGiaSYT = New System.Windows.Forms.TextBox
        Me.Label7 = New System.Windows.Forms.Label
        Me.TxtGiaBan = New System.Windows.Forms.TextBox
        Me.Label6 = New System.Windows.Forms.Label
        Me.TxtTenNhomHH = New System.Windows.Forms.TextBox
        Me.Label5 = New System.Windows.Forms.Label
        Me.txtTen_HD = New System.Windows.Forms.TextBox
        Me.txtTen_BD = New System.Windows.Forms.TextBox
        Me.txtMa_HH = New System.Windows.Forms.TextBox
        Me.Label4 = New System.Windows.Forms.Label
        Me.Label3 = New System.Windows.Forms.Label
        Me.Label2 = New System.Windows.Forms.Label
        Me.Label1 = New System.Windows.Forms.Label
        Me.grid_DanhSachHangHoa = New System.Windows.Forms.DataGridView
        Me.sdkDataGridViewTextBoxColumn = New System.Windows.Forms.DataGridViewTextBoxColumn
        Me.vatDataGridViewTextBoxColumn = New System.Windows.Forms.DataGridViewTextBoxColumn
        Me.dkbaoquanDataGridViewTextBoxColumn = New System.Windows.Forms.DataGridViewTextBoxColumn
        Me.dongia_muaDataGridViewTextBoxColumn = New System.Windows.Forms.DataGridViewTextBoxColumn
        Me.dongia_tinhDataGridViewTextBoxColumn = New System.Windows.Forms.DataGridViewTextBoxColumn
        Me.dongia_huyenDataGridViewTextBoxColumn = New System.Windows.Forms.DataGridViewTextBoxColumn
        Me.dongia_xaDataGridViewTextBoxColumn = New System.Windows.Forms.DataGridViewTextBoxColumn
        Me.ghichuDataGridViewTextBoxColumn = New System.Windows.Forms.DataGridViewTextBoxColumn
        Me.tinhtrangDataGridViewTextBoxColumn = New System.Windows.Forms.DataGridViewTextBoxColumn
        Me.colMaNhaCungCap = New System.Windows.Forms.DataGridViewTextBoxColumn
        Me.MahanghoaDataGridViewTextBoxColumn = New System.Windows.Forms.DataGridViewTextBoxColumn
        Me.TenbietduocDataGridViewTextBoxColumn = New System.Windows.Forms.DataGridViewTextBoxColumn
        Me.TenhoaduocDataGridViewTextBoxColumn = New System.Windows.Forms.DataGridViewTextBoxColumn
        Me.DonvithungDataGridViewTextBoxColumn = New System.Windows.Forms.DataGridViewTextBoxColumn
        Me.QuicachthungDataGridViewTextBoxColumn = New System.Windows.Forms.DataGridViewTextBoxColumn
        Me.DonvibanchanDataGridViewTextBoxColumn = New System.Windows.Forms.DataGridViewTextBoxColumn
        Me.QuicachbanchanDataGridViewTextBoxColumn = New System.Windows.Forms.DataGridViewTextBoxColumn
        Me.DonvibanleDataGridViewTextBoxColumn = New System.Windows.Forms.DataGridViewTextBoxColumn
        Me.QuicachbanleDataGridViewTextBoxColumn = New System.Windows.Forms.DataGridViewTextBoxColumn
        Me.DongiaboDataGridViewTextBoxColumn = New System.Windows.Forms.DataGridViewTextBoxColumn
        Me.DongiabanDataGridViewTextBoxColumn = New System.Windows.Forms.DataGridViewTextBoxColumn
        Me.ChietkhauDataGridViewTextBoxColumn = New System.Windows.Forms.DataGridViewTextBoxColumn
        Me.colMaNhomHangHoa = New System.Windows.Forms.DataGridViewTextBoxColumn
        Me.colMaDuocChinh = New System.Windows.Forms.DataGridViewTextBoxColumn
        Me.HandungDataGridViewTextBoxColumn = New System.Windows.Forms.DataGridViewTextBoxColumn
        Me.MinDataGridViewTextBoxColumn = New System.Windows.Forms.DataGridViewTextBoxColumn
        Me.MaxDataGridViewTextBoxColumn = New System.Windows.Forms.DataGridViewTextBoxColumn
        Me.DataSetFormDonBindingSource = New System.Windows.Forms.BindingSource(Me.components)
        Me.DataSetForm_Don = New DAKNONG.DataSetForm_Don
        Me.TxtQC_Thung = New System.Windows.Forms.TextBox
        Me.Label12 = New System.Windows.Forms.Label
        Me.TxtDV_Thung = New System.Windows.Forms.TextBox
        Me.TxtDV_Chan = New System.Windows.Forms.TextBox
        Me.TxtQC_Chan = New System.Windows.Forms.TextBox
        Me.TxtDV_Le = New System.Windows.Forms.TextBox
        Me.TxtQC_Le = New System.Windows.Forms.TextBox
        Me.CboNhomHH = New MTGCComboBox
        Me.CboNhomDC = New MTGCComboBox
        Me.TxtTenNhomDC = New System.Windows.Forms.TextBox
        Me.Label13 = New System.Windows.Forms.Label
        Me.TxtChietKhau = New System.Windows.Forms.TextBox
        Me.Label14 = New System.Windows.Forms.Label
        Me.TabMain = New System.Windows.Forms.TabControl
        Me.TabThongTin = New System.Windows.Forms.TabPage
        Me.Label24 = New System.Windows.Forms.Label
        Me.txtVAT = New System.Windows.Forms.TextBox
        Me.Label23 = New System.Windows.Forms.Label
        Me.Cbo_NhaCungCap = New MTGCComboBox
        Me.txtTenNhaCungCap = New System.Windows.Forms.TextBox
        Me.chkbox_tinhtrang = New System.Windows.Forms.CheckBox
        Me.Label22 = New System.Windows.Forms.Label
        Me.txtGhiChu = New System.Windows.Forms.TextBox
        Me.Label21 = New System.Windows.Forms.Label
        Me.txtDonGiaXa = New System.Windows.Forms.TextBox
        Me.Label20 = New System.Windows.Forms.Label
        Me.txtDonGiaHuyen = New System.Windows.Forms.TextBox
        Me.Label18 = New System.Windows.Forms.Label
        Me.txtDonGiaTinh = New System.Windows.Forms.TextBox
        Me.Label19 = New System.Windows.Forms.Label
        Me.txtDonGiaMua = New System.Windows.Forms.TextBox
        Me.Label17 = New System.Windows.Forms.Label
        Me.txtDieuKien = New System.Windows.Forms.TextBox
        Me.Label15 = New System.Windows.Forms.Label
        Me.txtSDK = New System.Windows.Forms.TextBox
        Me.TabTimKiem = New System.Windows.Forms.TabPage
        Me.Label25 = New System.Windows.Forms.Label
        Me.TextBoxVat = New System.Windows.Forms.TextBox
        Me.Label16 = New System.Windows.Forms.Label
        Me.txtMaSearch = New System.Windows.Forms.TextBox
        Me.btnTimKiem = New System.Windows.Forms.Button
        Me.txtTenSearch = New System.Windows.Forms.TextBox
        Me.Label11 = New System.Windows.Forms.Label
        Me.gridSearch = New System.Windows.Forms.DataGridView
        Me.MahanghoaDataGridViewTextBoxColumn1 = New System.Windows.Forms.DataGridViewTextBoxColumn
        Me.TenbietduocDataGridViewTextBoxColumn1 = New System.Windows.Forms.DataGridViewTextBoxColumn
        Me.TenhoaduocDataGridViewTextBoxColumn1 = New System.Windows.Forms.DataGridViewTextBoxColumn
        Me.DonvithungDataGridViewTextBoxColumn1 = New System.Windows.Forms.DataGridViewTextBoxColumn
        Me.QuicachthungDataGridViewTextBoxColumn1 = New System.Windows.Forms.DataGridViewTextBoxColumn
        Me.DonvibanchanDataGridViewTextBoxColumn1 = New System.Windows.Forms.DataGridViewTextBoxColumn
        Me.QuicachbanchanDataGridViewTextBoxColumn1 = New System.Windows.Forms.DataGridViewTextBoxColumn
        Me.DonvibanleDataGridViewTextBoxColumn1 = New System.Windows.Forms.DataGridViewTextBoxColumn
        Me.QuicachbanleDataGridViewTextBoxColumn1 = New System.Windows.Forms.DataGridViewTextBoxColumn
        Me.DongiaboDataGridViewTextBoxColumn1 = New System.Windows.Forms.DataGridViewTextBoxColumn
        Me.DongiabanDataGridViewTextBoxColumn1 = New System.Windows.Forms.DataGridViewTextBoxColumn
        Me.ChietkhauDataGridViewTextBoxColumn1 = New System.Windows.Forms.DataGridViewTextBoxColumn
        Me.ManhomhanghoaDataGridViewTextBoxColumn = New System.Windows.Forms.DataGridViewTextBoxColumn
        Me.MaduocchinhDataGridViewTextBoxColumn = New System.Windows.Forms.DataGridViewTextBoxColumn
        Me.HandungDataGridViewTextBoxColumn1 = New System.Windows.Forms.DataGridViewTextBoxColumn
        Me.MinDataGridViewTextBoxColumn1 = New System.Windows.Forms.DataGridViewTextBoxColumn
        Me.MaxDataGridViewTextBoxColumn1 = New System.Windows.Forms.DataGridViewTextBoxColumn
        Me.SdkDataGridViewTextBoxColumn1 = New System.Windows.Forms.DataGridViewTextBoxColumn
        Me.DkbaoquanDataGridViewTextBoxColumn1 = New System.Windows.Forms.DataGridViewTextBoxColumn
        Me.DongiamuaDataGridViewTextBoxColumn = New System.Windows.Forms.DataGridViewTextBoxColumn
        Me.DongiatinhDataGridViewTextBoxColumn = New System.Windows.Forms.DataGridViewTextBoxColumn
        Me.DongiahuyenDataGridViewTextBoxColumn = New System.Windows.Forms.DataGridViewTextBoxColumn
        Me.DongiaxaDataGridViewTextBoxColumn = New System.Windows.Forms.DataGridViewTextBoxColumn
        Me.GhichuDataGridViewTextBoxColumn1 = New System.Windows.Forms.DataGridViewTextBoxColumn
        Me.TinhtrangDataGridViewTextBoxColumn1 = New System.Windows.Forms.DataGridViewTextBoxColumn
        Me.ManhacungcapDataGridViewTextBoxColumn = New System.Windows.Forms.DataGridViewTextBoxColumn
        Me.VatDataGridViewTextBoxColumn1 = New System.Windows.Forms.DataGridViewTextBoxColumn
        Me.DataSetFormDonBindingSource1 = New System.Windows.Forms.BindingSource(Me.components)
        CType(Me.grid_DanhSachHangHoa, System.ComponentModel.ISupportInitialize).BeginInit()
        CType(Me.DataSetFormDonBindingSource, System.ComponentModel.ISupportInitialize).BeginInit()
        CType(Me.DataSetForm_Don, System.ComponentModel.ISupportInitialize).BeginInit()
        Me.TabMain.SuspendLayout()
        Me.TabThongTin.SuspendLayout()
        Me.TabTimKiem.SuspendLayout()
        CType(Me.gridSearch, System.ComponentModel.ISupportInitialize).BeginInit()
        CType(Me.DataSetFormDonBindingSource1, System.ComponentModel.ISupportInitialize).BeginInit()
        Me.SuspendLayout()
        '
        'btnSave
        '
        Me.btnSave.BackColor = System.Drawing.Color.Transparent
        Me.btnSave.Image = CType(resources.GetObject("btnSave.Image"), System.Drawing.Image)
        Me.btnSave.Location = New System.Drawing.Point(244, 491)
        Me.btnSave.Name = "btnSave"
        Me.btnSave.Size = New System.Drawing.Size(88, 24)
        Me.btnSave.TabIndex = 19
        Me.btnSave.UseVisualStyleBackColor = False
        '
        'btnNew
        '
        Me.btnNew.Image = CType(resources.GetObject("btnNew.Image"), System.Drawing.Image)
        Me.btnNew.Location = New System.Drawing.Point(150, 491)
        Me.btnNew.Name = "btnNew"
        Me.btnNew.Size = New System.Drawing.Size(88, 24)
        Me.btnNew.TabIndex = 20
        '
        'btnDelete1
        '
        Me.btnDelete1.Image = CType(resources.GetObject("btnDelete1.Image"), System.Drawing.Image)
        Me.btnDelete1.Location = New System.Drawing.Point(339, 491)
        Me.btnDelete1.Name = "btnDelete1"
        Me.btnDelete1.Size = New System.Drawing.Size(88, 24)
        Me.btnDelete1.TabIndex = 29
        '
        'BtnClose
        '
        Me.BtnClose.Image = CType(resources.GetObject("BtnClose.Image"), System.Drawing.Image)
        Me.BtnClose.Location = New System.Drawing.Point(527, 491)
        Me.BtnClose.Name = "BtnClose"
        Me.BtnClose.Size = New System.Drawing.Size(88, 24)
        Me.BtnClose.TabIndex = 30
        '
        'Button1
        '
        Me.Button1.Image = CType(resources.GetObject("Button1.Image"), System.Drawing.Image)
        Me.Button1.Location = New System.Drawing.Point(433, 491)
        Me.Button1.Name = "Button1"
        Me.Button1.Size = New System.Drawing.Size(88, 24)
        Me.Button1.TabIndex = 21
        '
        'TxtHanDung
        '
        Me.TxtHanDung.Font = New System.Drawing.Font("Arial", 9.75!, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, CType(0, Byte))
        Me.TxtHanDung.Location = New System.Drawing.Point(354, 172)
        Me.TxtHanDung.MaxLength = 10
        Me.TxtHanDung.Name = "TxtHanDung"
        Me.TxtHanDung.Size = New System.Drawing.Size(76, 22)
        Me.TxtHanDung.TabIndex = 16
        Me.TxtHanDung.TextAlign = System.Windows.Forms.HorizontalAlignment.Right
        '
        'Label10
        '
        Me.Label10.Location = New System.Drawing.Point(297, 175)
        Me.Label10.Name = "Label10"
        Me.Label10.Size = New System.Drawing.Size(55, 18)
        Me.Label10.TabIndex = 74
        Me.Label10.Text = "Cận Date"
        Me.Label10.TextAlign = System.Drawing.ContentAlignment.MiddleRight
        '
        'TxtMax
        '
        Me.TxtMax.Font = New System.Drawing.Font("Arial", 9.75!, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, CType(0, Byte))
        Me.TxtMax.Location = New System.Drawing.Point(219, 172)
        Me.TxtMax.MaxLength = 10
        Me.TxtMax.Name = "TxtMax"
        Me.TxtMax.Size = New System.Drawing.Size(76, 22)
        Me.TxtMax.TabIndex = 15
        Me.TxtMax.TextAlign = System.Windows.Forms.HorizontalAlignment.Right
        '
        'Label9
        '
        Me.Label9.Location = New System.Drawing.Point(154, 176)
        Me.Label9.Name = "Label9"
        Me.Label9.Size = New System.Drawing.Size(62, 16)
        Me.Label9.TabIndex = 73
        Me.Label9.Text = "Lượng Max"
        Me.Label9.TextAlign = System.Drawing.ContentAlignment.MiddleRight
        '
        'TxtMin
        '
        Me.TxtMin.Font = New System.Drawing.Font("Arial", 9.75!, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, CType(0, Byte))
        Me.TxtMin.Location = New System.Drawing.Point(77, 172)
        Me.TxtMin.MaxLength = 10
        Me.TxtMin.Name = "TxtMin"
        Me.TxtMin.Size = New System.Drawing.Size(76, 22)
        Me.TxtMin.TabIndex = 14
        Me.TxtMin.TextAlign = System.Windows.Forms.HorizontalAlignment.Right
        '
        'Label8
        '
        Me.Label8.Location = New System.Drawing.Point(15, 175)
        Me.Label8.Name = "Label8"
        Me.Label8.Size = New System.Drawing.Size(61, 17)
        Me.Label8.TabIndex = 72
        Me.Label8.Text = "Lượng Min"
        Me.Label8.TextAlign = System.Drawing.ContentAlignment.MiddleRight
        '
        'TxtGiaSYT
        '
        Me.TxtGiaSYT.Font = New System.Drawing.Font("Arial", 9.75!, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, CType(0, Byte))
        Me.TxtGiaSYT.Location = New System.Drawing.Point(77, 116)
        Me.TxtGiaSYT.MaxLength = 10
        Me.TxtGiaSYT.Name = "TxtGiaSYT"
        Me.TxtGiaSYT.Size = New System.Drawing.Size(76, 22)
        Me.TxtGiaSYT.TabIndex = 12
        Me.TxtGiaSYT.TextAlign = System.Windows.Forms.HorizontalAlignment.Right
        '
        'Label7
        '
        Me.Label7.Location = New System.Drawing.Point(21, 117)
        Me.Label7.Name = "Label7"
        Me.Label7.Size = New System.Drawing.Size(54, 19)
        Me.Label7.TabIndex = 71
        Me.Label7.Text = "ĐG Bộ"
        Me.Label7.TextAlign = System.Drawing.ContentAlignment.MiddleRight
        '
        'TxtGiaBan
        '
        Me.TxtGiaBan.Font = New System.Drawing.Font("Arial", 9.75!, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, CType(0, Byte))
        Me.TxtGiaBan.Location = New System.Drawing.Point(354, 116)
        Me.TxtGiaBan.MaxLength = 10
        Me.TxtGiaBan.Name = "TxtGiaBan"
        Me.TxtGiaBan.Size = New System.Drawing.Size(76, 22)
        Me.TxtGiaBan.TabIndex = 11
        Me.TxtGiaBan.TextAlign = System.Windows.Forms.HorizontalAlignment.Right
        '
        'Label6
        '
        Me.Label6.Location = New System.Drawing.Point(306, 117)
        Me.Label6.Name = "Label6"
        Me.Label6.Size = New System.Drawing.Size(46, 19)
        Me.Label6.TabIndex = 70
        Me.Label6.Text = "ĐG bán"
        Me.Label6.TextAlign = System.Drawing.ContentAlignment.MiddleRight
        '
        'TxtTenNhomHH
        '
        Me.TxtTenNhomHH.BackColor = System.Drawing.Color.White
        Me.TxtTenNhomHH.Font = New System.Drawing.Font("Arial", 9.75!, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, CType(0, Byte))
        Me.TxtTenNhomHH.Location = New System.Drawing.Point(154, 5)
        Me.TxtTenNhomHH.MaxLength = 10
        Me.TxtTenNhomHH.Name = "TxtTenNhomHH"
        Me.TxtTenNhomHH.ReadOnly = True
        Me.TxtTenNhomHH.Size = New System.Drawing.Size(276, 22)
        Me.TxtTenNhomHH.TabIndex = 57
        '
        'Label5
        '
        Me.Label5.Location = New System.Drawing.Point(3, 7)
        Me.Label5.Name = "Label5"
        Me.Label5.Size = New System.Drawing.Size(72, 19)
        Me.Label5.TabIndex = 69
        Me.Label5.Text = "Nhóm H.Hóa"
        Me.Label5.TextAlign = System.Drawing.ContentAlignment.MiddleRight
        '
        'txtTen_HD
        '
        Me.txtTen_HD.BackColor = System.Drawing.Color.White
        Me.txtTen_HD.Font = New System.Drawing.Font("Arial", 9.75!, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, CType(0, Byte))
        Me.txtTen_HD.Location = New System.Drawing.Point(509, 60)
        Me.txtTen_HD.MaxLength = 100
        Me.txtTen_HD.Name = "txtTen_HD"
        Me.txtTen_HD.ReadOnly = True
        Me.txtTen_HD.Size = New System.Drawing.Size(272, 22)
        Me.txtTen_HD.TabIndex = 2
        '
        'txtTen_BD
        '
        Me.txtTen_BD.Font = New System.Drawing.Font("Arial", 9.75!, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, CType(0, Byte))
        Me.txtTen_BD.Location = New System.Drawing.Point(77, 60)
        Me.txtTen_BD.MaxLength = 50
        Me.txtTen_BD.Name = "txtTen_BD"
        Me.txtTen_BD.Size = New System.Drawing.Size(353, 22)
        Me.txtTen_BD.TabIndex = 1
        '
        'txtMa_HH
        '
        Me.txtMa_HH.Font = New System.Drawing.Font("Arial", 9.75!, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, CType(0, Byte))
        Me.txtMa_HH.Location = New System.Drawing.Point(77, 32)
        Me.txtMa_HH.MaxLength = 10
        Me.txtMa_HH.Name = "txtMa_HH"
        Me.txtMa_HH.Size = New System.Drawing.Size(76, 22)
        Me.txtMa_HH.TabIndex = 0
        '
        'Label4
        '
        Me.Label4.Location = New System.Drawing.Point(432, 62)
        Me.Label4.Name = "Label4"
        Me.Label4.Size = New System.Drawing.Size(74, 19)
        Me.Label4.TabIndex = 67
        Me.Label4.Text = "Tên hóa dược"
        Me.Label4.TextAlign = System.Drawing.ContentAlignment.MiddleRight
        '
        'Label3
        '
        Me.Label3.Location = New System.Drawing.Point(-2, 62)
        Me.Label3.Name = "Label3"
        Me.Label3.Size = New System.Drawing.Size(79, 19)
        Me.Label3.TabIndex = 66
        Me.Label3.Text = "Tên biệt dược "
        Me.Label3.TextAlign = System.Drawing.ContentAlignment.MiddleRight
        '
        'Label2
        '
        Me.Label2.Location = New System.Drawing.Point(2, 33)
        Me.Label2.Name = "Label2"
        Me.Label2.Size = New System.Drawing.Size(73, 19)
        Me.Label2.TabIndex = 65
        Me.Label2.Text = "Mã hàng hóa"
        Me.Label2.TextAlign = System.Drawing.ContentAlignment.MiddleRight
        '
        'Label1
        '
        Me.Label1.BackColor = System.Drawing.Color.Transparent
        Me.Label1.Font = New System.Drawing.Font("Microsoft Sans Serif", 15.75!, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, CType(0, Byte))
        Me.Label1.Location = New System.Drawing.Point(256, 2)
        Me.Label1.Name = "Label1"
        Me.Label1.Size = New System.Drawing.Size(304, 24)
        Me.Label1.TabIndex = 64
        Me.Label1.Text = "DANH MỤC HÀNG HÓA"
        '
        'grid_DanhSachHangHoa
        '
        Me.grid_DanhSachHangHoa.AllowUserToAddRows = False
        Me.grid_DanhSachHangHoa.AllowUserToDeleteRows = False
        Me.grid_DanhSachHangHoa.AllowUserToResizeColumns = False
        Me.grid_DanhSachHangHoa.AutoGenerateColumns = False
        Me.grid_DanhSachHangHoa.BackgroundColor = System.Drawing.Color.White
        DataGridViewCellStyle1.Alignment = System.Windows.Forms.DataGridViewContentAlignment.MiddleCenter
        DataGridViewCellStyle1.BackColor = System.Drawing.SystemColors.Control
        DataGridViewCellStyle1.Font = New System.Drawing.Font("Microsoft Sans Serif", 8.25!, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, CType(0, Byte))
        DataGridViewCellStyle1.ForeColor = System.Drawing.SystemColors.WindowText
        DataGridViewCellStyle1.SelectionBackColor = System.Drawing.SystemColors.Highlight
        DataGridViewCellStyle1.SelectionForeColor = System.Drawing.SystemColors.HighlightText
        DataGridViewCellStyle1.WrapMode = System.Windows.Forms.DataGridViewTriState.[True]
        Me.grid_DanhSachHangHoa.ColumnHeadersDefaultCellStyle = DataGridViewCellStyle1
        Me.grid_DanhSachHangHoa.ColumnHeadersHeightSizeMode = System.Windows.Forms.DataGridViewColumnHeadersHeightSizeMode.AutoSize
        Me.grid_DanhSachHangHoa.Columns.AddRange(New System.Windows.Forms.DataGridViewColumn() {Me.sdkDataGridViewTextBoxColumn, Me.vatDataGridViewTextBoxColumn, Me.dkbaoquanDataGridViewTextBoxColumn, Me.dongia_muaDataGridViewTextBoxColumn, Me.dongia_tinhDataGridViewTextBoxColumn, Me.dongia_huyenDataGridViewTextBoxColumn, Me.dongia_xaDataGridViewTextBoxColumn, Me.ghichuDataGridViewTextBoxColumn, Me.tinhtrangDataGridViewTextBoxColumn, Me.colMaNhaCungCap, Me.MahanghoaDataGridViewTextBoxColumn, Me.TenbietduocDataGridViewTextBoxColumn, Me.TenhoaduocDataGridViewTextBoxColumn, Me.DonvithungDataGridViewTextBoxColumn, Me.QuicachthungDataGridViewTextBoxColumn, Me.DonvibanchanDataGridViewTextBoxColumn, Me.QuicachbanchanDataGridViewTextBoxColumn, Me.DonvibanleDataGridViewTextBoxColumn, Me.QuicachbanleDataGridViewTextBoxColumn, Me.DongiaboDataGridViewTextBoxColumn, Me.DongiabanDataGridViewTextBoxColumn, Me.ChietkhauDataGridViewTextBoxColumn, Me.colMaNhomHangHoa, Me.colMaDuocChinh, Me.HandungDataGridViewTextBoxColumn, Me.MinDataGridViewTextBoxColumn, Me.MaxDataGridViewTextBoxColumn})
        Me.grid_DanhSachHangHoa.DataMember = "tbl_hanghoa"
        Me.grid_DanhSachHangHoa.DataSource = Me.DataSetFormDonBindingSource
        Me.grid_DanhSachHangHoa.Location = New System.Drawing.Point(6, 228)
        Me.grid_DanhSachHangHoa.Name = "grid_DanhSachHangHoa"
        Me.grid_DanhSachHangHoa.ReadOnly = True
        Me.grid_DanhSachHangHoa.RowHeadersVisible = False
        Me.grid_DanhSachHangHoa.Size = New System.Drawing.Size(775, 257)
        Me.grid_DanhSachHangHoa.TabIndex = 76
        '
        'sdkDataGridViewTextBoxColumn
        '
        Me.sdkDataGridViewTextBoxColumn.DataPropertyName = "sdk"
        Me.sdkDataGridViewTextBoxColumn.HeaderText = "sdk"
        Me.sdkDataGridViewTextBoxColumn.Name = "sdkDataGridViewTextBoxColumn"
        Me.sdkDataGridViewTextBoxColumn.ReadOnly = True
        Me.sdkDataGridViewTextBoxColumn.Visible = False
        '
        'vatDataGridViewTextBoxColumn
        '
        Me.vatDataGridViewTextBoxColumn.DataPropertyName = "vat"
        Me.vatDataGridViewTextBoxColumn.HeaderText = "vat"
        Me.vatDataGridViewTextBoxColumn.Name = "vatDataGridViewTextBoxColumn"
        Me.vatDataGridViewTextBoxColumn.ReadOnly = True
        Me.vatDataGridViewTextBoxColumn.Visible = False
        '
        'dkbaoquanDataGridViewTextBoxColumn
        '
        Me.dkbaoquanDataGridViewTextBoxColumn.DataPropertyName = "dkbaoquan"
        Me.dkbaoquanDataGridViewTextBoxColumn.HeaderText = "dkbaoquan"
        Me.dkbaoquanDataGridViewTextBoxColumn.Name = "dkbaoquanDataGridViewTextBoxColumn"
        Me.dkbaoquanDataGridViewTextBoxColumn.ReadOnly = True
        Me.dkbaoquanDataGridViewTextBoxColumn.Visible = False
        '
        'dongia_muaDataGridViewTextBoxColumn
        '
        Me.dongia_muaDataGridViewTextBoxColumn.DataPropertyName = "dongia_mua"
        Me.dongia_muaDataGridViewTextBoxColumn.HeaderText = "dongia_mua"
        Me.dongia_muaDataGridViewTextBoxColumn.Name = "dongia_muaDataGridViewTextBoxColumn"
        Me.dongia_muaDataGridViewTextBoxColumn.ReadOnly = True
        Me.dongia_muaDataGridViewTextBoxColumn.Visible = False
        '
        'dongia_tinhDataGridViewTextBoxColumn
        '
        Me.dongia_tinhDataGridViewTextBoxColumn.DataPropertyName = "dongia_tinh"
        Me.dongia_tinhDataGridViewTextBoxColumn.HeaderText = "dongia_tinh"
        Me.dongia_tinhDataGridViewTextBoxColumn.Name = "dongia_tinhDataGridViewTextBoxColumn"
        Me.dongia_tinhDataGridViewTextBoxColumn.ReadOnly = True
        Me.dongia_tinhDataGridViewTextBoxColumn.Visible = False
        '
        'dongia_huyenDataGridViewTextBoxColumn
        '
        Me.dongia_huyenDataGridViewTextBoxColumn.DataPropertyName = "dongia_huyen"
        Me.dongia_huyenDataGridViewTextBoxColumn.HeaderText = "dongia_huyen"
        Me.dongia_huyenDataGridViewTextBoxColumn.Name = "dongia_huyenDataGridViewTextBoxColumn"
        Me.dongia_huyenDataGridViewTextBoxColumn.ReadOnly = True
        Me.dongia_huyenDataGridViewTextBoxColumn.Visible = False
        '
        'dongia_xaDataGridViewTextBoxColumn
        '
        Me.dongia_xaDataGridViewTextBoxColumn.DataPropertyName = "dongia_xa"
        Me.dongia_xaDataGridViewTextBoxColumn.HeaderText = "dongia_xa"
        Me.dongia_xaDataGridViewTextBoxColumn.Name = "dongia_xaDataGridViewTextBoxColumn"
        Me.dongia_xaDataGridViewTextBoxColumn.ReadOnly = True
        Me.dongia_xaDataGridViewTextBoxColumn.Visible = False
        '
        'ghichuDataGridViewTextBoxColumn
        '
        Me.ghichuDataGridViewTextBoxColumn.DataPropertyName = "ghichu"
        Me.ghichuDataGridViewTextBoxColumn.HeaderText = "ghichu"
        Me.ghichuDataGridViewTextBoxColumn.Name = "ghichuDataGridViewTextBoxColumn"
        Me.ghichuDataGridViewTextBoxColumn.ReadOnly = True
        Me.ghichuDataGridViewTextBoxColumn.Visible = False
        '
        'tinhtrangDataGridViewTextBoxColumn
        '
        Me.tinhtrangDataGridViewTextBoxColumn.DataPropertyName = "tinhtrang"
        Me.tinhtrangDataGridViewTextBoxColumn.HeaderText = "tinhtrang"
        Me.tinhtrangDataGridViewTextBoxColumn.Name = "tinhtrangDataGridViewTextBoxColumn"
        Me.tinhtrangDataGridViewTextBoxColumn.ReadOnly = True
        Me.tinhtrangDataGridViewTextBoxColumn.Visible = False
        '
        'colMaNhaCungCap
        '
        Me.colMaNhaCungCap.DataPropertyName = "ma_nhacungcap"
        Me.colMaNhaCungCap.HeaderText = "ma_nhacungcap"
        Me.colMaNhaCungCap.Name = "colMaNhaCungCap"
        Me.colMaNhaCungCap.ReadOnly = True
        Me.colMaNhaCungCap.Visible = False
        '
        'MahanghoaDataGridViewTextBoxColumn
        '
        Me.MahanghoaDataGridViewTextBoxColumn.DataPropertyName = "ma_hanghoa"
        Me.MahanghoaDataGridViewTextBoxColumn.HeaderText = "Mã HH"
        Me.MahanghoaDataGridViewTextBoxColumn.Name = "MahanghoaDataGridViewTextBoxColumn"
        Me.MahanghoaDataGridViewTextBoxColumn.ReadOnly = True
        Me.MahanghoaDataGridViewTextBoxColumn.Width = 80
        '
        'TenbietduocDataGridViewTextBoxColumn
        '
        Me.TenbietduocDataGridViewTextBoxColumn.DataPropertyName = "ten_bietduoc"
        Me.TenbietduocDataGridViewTextBoxColumn.HeaderText = "Tên HH"
        Me.TenbietduocDataGridViewTextBoxColumn.Name = "TenbietduocDataGridViewTextBoxColumn"
        Me.TenbietduocDataGridViewTextBoxColumn.ReadOnly = True
        Me.TenbietduocDataGridViewTextBoxColumn.Width = 220
        '
        'TenhoaduocDataGridViewTextBoxColumn
        '
        Me.TenhoaduocDataGridViewTextBoxColumn.DataPropertyName = "ten_hoaduoc"
        Me.TenhoaduocDataGridViewTextBoxColumn.HeaderText = "Tên hoá dược"
        Me.TenhoaduocDataGridViewTextBoxColumn.Name = "TenhoaduocDataGridViewTextBoxColumn"
        Me.TenhoaduocDataGridViewTextBoxColumn.ReadOnly = True
        Me.TenhoaduocDataGridViewTextBoxColumn.Visible = False
        '
        'DonvithungDataGridViewTextBoxColumn
        '
        Me.DonvithungDataGridViewTextBoxColumn.DataPropertyName = "donvi_thung"
        Me.DonvithungDataGridViewTextBoxColumn.HeaderText = "donvi_thung"
        Me.DonvithungDataGridViewTextBoxColumn.Name = "DonvithungDataGridViewTextBoxColumn"
        Me.DonvithungDataGridViewTextBoxColumn.ReadOnly = True
        Me.DonvithungDataGridViewTextBoxColumn.Visible = False
        '
        'QuicachthungDataGridViewTextBoxColumn
        '
        Me.QuicachthungDataGridViewTextBoxColumn.DataPropertyName = "quicach_thung"
        Me.QuicachthungDataGridViewTextBoxColumn.HeaderText = "quicach_thung"
        Me.QuicachthungDataGridViewTextBoxColumn.Name = "QuicachthungDataGridViewTextBoxColumn"
        Me.QuicachthungDataGridViewTextBoxColumn.ReadOnly = True
        Me.QuicachthungDataGridViewTextBoxColumn.Visible = False
        '
        'DonvibanchanDataGridViewTextBoxColumn
        '
        Me.DonvibanchanDataGridViewTextBoxColumn.DataPropertyName = "donvi_banchan"
        Me.DonvibanchanDataGridViewTextBoxColumn.HeaderText = "donvi_banchan"
        Me.DonvibanchanDataGridViewTextBoxColumn.Name = "DonvibanchanDataGridViewTextBoxColumn"
        Me.DonvibanchanDataGridViewTextBoxColumn.ReadOnly = True
        Me.DonvibanchanDataGridViewTextBoxColumn.Visible = False
        '
        'QuicachbanchanDataGridViewTextBoxColumn
        '
        Me.QuicachbanchanDataGridViewTextBoxColumn.DataPropertyName = "quicach_banchan"
        Me.QuicachbanchanDataGridViewTextBoxColumn.HeaderText = "quicach_banchan"
        Me.QuicachbanchanDataGridViewTextBoxColumn.Name = "QuicachbanchanDataGridViewTextBoxColumn"
        Me.QuicachbanchanDataGridViewTextBoxColumn.ReadOnly = True
        Me.QuicachbanchanDataGridViewTextBoxColumn.Visible = False
        '
        'DonvibanleDataGridViewTextBoxColumn
        '
        Me.DonvibanleDataGridViewTextBoxColumn.DataPropertyName = "donvi_banle"
        Me.DonvibanleDataGridViewTextBoxColumn.HeaderText = "donvi_banle"
        Me.DonvibanleDataGridViewTextBoxColumn.Name = "DonvibanleDataGridViewTextBoxColumn"
        Me.DonvibanleDataGridViewTextBoxColumn.ReadOnly = True
        Me.DonvibanleDataGridViewTextBoxColumn.Visible = False
        '
        'QuicachbanleDataGridViewTextBoxColumn
        '
        Me.QuicachbanleDataGridViewTextBoxColumn.DataPropertyName = "quicach_banle"
        Me.QuicachbanleDataGridViewTextBoxColumn.HeaderText = "quicach_banle"
        Me.QuicachbanleDataGridViewTextBoxColumn.Name = "QuicachbanleDataGridViewTextBoxColumn"
        Me.QuicachbanleDataGridViewTextBoxColumn.ReadOnly = True
        Me.QuicachbanleDataGridViewTextBoxColumn.Visible = False
        '
        'DongiaboDataGridViewTextBoxColumn
        '
        Me.DongiaboDataGridViewTextBoxColumn.DataPropertyName = "dongia_bo"
        Me.DongiaboDataGridViewTextBoxColumn.HeaderText = "dongia_bo"
        Me.DongiaboDataGridViewTextBoxColumn.Name = "DongiaboDataGridViewTextBoxColumn"
        Me.DongiaboDataGridViewTextBoxColumn.ReadOnly = True
        Me.DongiaboDataGridViewTextBoxColumn.Visible = False
        '
        'DongiabanDataGridViewTextBoxColumn
        '
        Me.DongiabanDataGridViewTextBoxColumn.DataPropertyName = "dongia_ban"
        Me.DongiabanDataGridViewTextBoxColumn.HeaderText = "dongia_ban"
        Me.DongiabanDataGridViewTextBoxColumn.Name = "DongiabanDataGridViewTextBoxColumn"
        Me.DongiabanDataGridViewTextBoxColumn.ReadOnly = True
        Me.DongiabanDataGridViewTextBoxColumn.Visible = False
        '
        'ChietkhauDataGridViewTextBoxColumn
        '
        Me.ChietkhauDataGridViewTextBoxColumn.DataPropertyName = "chietkhau"
        DataGridViewCellStyle2.Alignment = System.Windows.Forms.DataGridViewContentAlignment.MiddleRight
        DataGridViewCellStyle2.Format = "N2"
        Me.ChietkhauDataGridViewTextBoxColumn.DefaultCellStyle = DataGridViewCellStyle2
        Me.ChietkhauDataGridViewTextBoxColumn.HeaderText = "(%) CK"
        Me.ChietkhauDataGridViewTextBoxColumn.Name = "ChietkhauDataGridViewTextBoxColumn"
        Me.ChietkhauDataGridViewTextBoxColumn.ReadOnly = True
        Me.ChietkhauDataGridViewTextBoxColumn.Width = 65
        '
        'colMaNhomHangHoa
        '
        Me.colMaNhomHangHoa.DataPropertyName = "ma_nhomhanghoa"
        Me.colMaNhomHangHoa.HeaderText = "Mã nhóm HH"
        Me.colMaNhomHangHoa.Name = "colMaNhomHangHoa"
        Me.colMaNhomHangHoa.ReadOnly = True
        '
        'colMaDuocChinh
        '
        Me.colMaDuocChinh.DataPropertyName = "ma_duocchinh"
        Me.colMaDuocChinh.HeaderText = "Mã dược chính"
        Me.colMaDuocChinh.Name = "colMaDuocChinh"
        Me.colMaDuocChinh.ReadOnly = True
        Me.colMaDuocChinh.Width = 110
        '
        'HandungDataGridViewTextBoxColumn
        '
        Me.HandungDataGridViewTextBoxColumn.DataPropertyName = "handung"
        DataGridViewCellStyle3.Alignment = System.Windows.Forms.DataGridViewContentAlignment.MiddleCenter
        Me.HandungDataGridViewTextBoxColumn.DefaultCellStyle = DataGridViewCellStyle3
        Me.HandungDataGridViewTextBoxColumn.HeaderText = "Hạn dùng"
        Me.HandungDataGridViewTextBoxColumn.Name = "HandungDataGridViewTextBoxColumn"
        Me.HandungDataGridViewTextBoxColumn.ReadOnly = True
        Me.HandungDataGridViewTextBoxColumn.Width = 80
        '
        'MinDataGridViewTextBoxColumn
        '
        Me.MinDataGridViewTextBoxColumn.DataPropertyName = "min_"
        DataGridViewCellStyle4.Alignment = System.Windows.Forms.DataGridViewContentAlignment.MiddleRight
        DataGridViewCellStyle4.Format = "N0"
        Me.MinDataGridViewTextBoxColumn.DefaultCellStyle = DataGridViewCellStyle4
        Me.MinDataGridViewTextBoxColumn.HeaderText = "Min"
        Me.MinDataGridViewTextBoxColumn.Name = "MinDataGridViewTextBoxColumn"
        Me.MinDataGridViewTextBoxColumn.ReadOnly = True
        Me.MinDataGridViewTextBoxColumn.Width = 50
        '
        'MaxDataGridViewTextBoxColumn
        '
        Me.MaxDataGridViewTextBoxColumn.DataPropertyName = "max_"
        DataGridViewCellStyle5.Alignment = System.Windows.Forms.DataGridViewContentAlignment.MiddleRight
        DataGridViewCellStyle5.Format = "N0"
        Me.MaxDataGridViewTextBoxColumn.DefaultCellStyle = DataGridViewCellStyle5
        Me.MaxDataGridViewTextBoxColumn.HeaderText = "Max"
        Me.MaxDataGridViewTextBoxColumn.Name = "MaxDataGridViewTextBoxColumn"
        Me.MaxDataGridViewTextBoxColumn.ReadOnly = True
        Me.MaxDataGridViewTextBoxColumn.Width = 50
        '
        'DataSetFormDonBindingSource
        '
        Me.DataSetFormDonBindingSource.DataSource = Me.DataSetForm_Don
        Me.DataSetFormDonBindingSource.Position = 0
        '
        'DataSetForm_Don
        '
        Me.DataSetForm_Don.DataSetName = "DataSetForm_Don"
        Me.DataSetForm_Don.SchemaSerializationMode = System.Data.SchemaSerializationMode.IncludeSchema
        '
        'TxtQC_Thung
        '
        Me.TxtQC_Thung.Font = New System.Drawing.Font("Arial", 9.75!, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, CType(0, Byte))
        Me.TxtQC_Thung.Location = New System.Drawing.Point(509, 172)
        Me.TxtQC_Thung.MaxLength = 100
        Me.TxtQC_Thung.Name = "TxtQC_Thung"
        Me.TxtQC_Thung.Size = New System.Drawing.Size(35, 22)
        Me.TxtQC_Thung.TabIndex = 3
        Me.TxtQC_Thung.Text = "1"
        Me.TxtQC_Thung.TextAlign = System.Windows.Forms.HorizontalAlignment.Right
        '
        'Label12
        '
        Me.Label12.Location = New System.Drawing.Point(450, 173)
        Me.Label12.Name = "Label12"
        Me.Label12.Size = New System.Drawing.Size(58, 19)
        Me.Label12.TabIndex = 78
        Me.Label12.Text = "Qui cách"
        Me.Label12.TextAlign = System.Drawing.ContentAlignment.MiddleRight
        '
        'TxtDV_Thung
        '
        Me.TxtDV_Thung.Font = New System.Drawing.Font("Arial", 9.75!, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, CType(0, Byte))
        Me.TxtDV_Thung.Location = New System.Drawing.Point(545, 172)
        Me.TxtDV_Thung.MaxLength = 100
        Me.TxtDV_Thung.Name = "TxtDV_Thung"
        Me.TxtDV_Thung.Size = New System.Drawing.Size(52, 22)
        Me.TxtDV_Thung.TabIndex = 4
        Me.TxtDV_Thung.Text = "thùng"
        Me.TxtDV_Thung.TextAlign = System.Windows.Forms.HorizontalAlignment.Center
        '
        'TxtDV_Chan
        '
        Me.TxtDV_Chan.Font = New System.Drawing.Font("Arial", 9.75!, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, CType(0, Byte))
        Me.TxtDV_Chan.Location = New System.Drawing.Point(635, 172)
        Me.TxtDV_Chan.MaxLength = 100
        Me.TxtDV_Chan.Name = "TxtDV_Chan"
        Me.TxtDV_Chan.Size = New System.Drawing.Size(52, 22)
        Me.TxtDV_Chan.TabIndex = 6
        Me.TxtDV_Chan.Text = "hộp"
        Me.TxtDV_Chan.TextAlign = System.Windows.Forms.HorizontalAlignment.Center
        '
        'TxtQC_Chan
        '
        Me.TxtQC_Chan.Font = New System.Drawing.Font("Arial", 9.75!, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, CType(0, Byte))
        Me.TxtQC_Chan.Location = New System.Drawing.Point(598, 172)
        Me.TxtQC_Chan.MaxLength = 100
        Me.TxtQC_Chan.Name = "TxtQC_Chan"
        Me.TxtQC_Chan.Size = New System.Drawing.Size(35, 22)
        Me.TxtQC_Chan.TabIndex = 5
        Me.TxtQC_Chan.Text = "30"
        Me.TxtQC_Chan.TextAlign = System.Windows.Forms.HorizontalAlignment.Right
        '
        'TxtDV_Le
        '
        Me.TxtDV_Le.Font = New System.Drawing.Font("Arial", 9.75!, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, CType(0, Byte))
        Me.TxtDV_Le.Location = New System.Drawing.Point(725, 172)
        Me.TxtDV_Le.MaxLength = 100
        Me.TxtDV_Le.Name = "TxtDV_Le"
        Me.TxtDV_Le.Size = New System.Drawing.Size(56, 22)
        Me.TxtDV_Le.TabIndex = 8
        Me.TxtDV_Le.Text = "gói"
        Me.TxtDV_Le.TextAlign = System.Windows.Forms.HorizontalAlignment.Center
        '
        'TxtQC_Le
        '
        Me.TxtQC_Le.Font = New System.Drawing.Font("Arial", 9.75!, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, CType(0, Byte))
        Me.TxtQC_Le.Location = New System.Drawing.Point(688, 172)
        Me.TxtQC_Le.MaxLength = 100
        Me.TxtQC_Le.Name = "TxtQC_Le"
        Me.TxtQC_Le.Size = New System.Drawing.Size(35, 22)
        Me.TxtQC_Le.TabIndex = 7
        Me.TxtQC_Le.Text = "20"
        Me.TxtQC_Le.TextAlign = System.Windows.Forms.HorizontalAlignment.Right
        '
        'CboNhomHH
        '
        Me.CboNhomHH.ArrowBoxColor = System.Drawing.SystemColors.Control
        Me.CboNhomHH.ArrowColor = System.Drawing.Color.Black
        Me.CboNhomHH.BindedControl = Nothing
        Me.CboNhomHH.BorderStyle = MTGCComboBox.TipiBordi.Fixed3D
        Me.CboNhomHH.CharacterCasing = System.Windows.Forms.CharacterCasing.Normal
        Me.CboNhomHH.ColumnNum = 1
        Me.CboNhomHH.ColumnWidth = "121"
        Me.CboNhomHH.DisabledArrowBoxColor = System.Drawing.SystemColors.Control
        Me.CboNhomHH.DisabledArrowColor = System.Drawing.Color.LightGray
        Me.CboNhomHH.DisabledBackColor = System.Drawing.SystemColors.Control
        Me.CboNhomHH.DisabledBorderColor = System.Drawing.SystemColors.InactiveBorder
        Me.CboNhomHH.DisabledForeColor = System.Drawing.SystemColors.GrayText
        Me.CboNhomHH.DisplayMember = "Text"
        Me.CboNhomHH.DrawMode = System.Windows.Forms.DrawMode.OwnerDrawFixed
        Me.CboNhomHH.DropDownBackColor = System.Drawing.Color.FromArgb(CType(CType(193, Byte), Integer), CType(CType(210, Byte), Integer), CType(CType(238, Byte), Integer))
        Me.CboNhomHH.DropDownForeColor = System.Drawing.Color.Black
        Me.CboNhomHH.DropDownStyle = MTGCComboBox.CustomDropDownStyle.DropDown
        Me.CboNhomHH.DropDownWidth = 141
        Me.CboNhomHH.GridLineColor = System.Drawing.Color.LightGray
        Me.CboNhomHH.GridLineHorizontal = False
        Me.CboNhomHH.GridLineVertical = False
        Me.CboNhomHH.LoadingType = MTGCComboBox.CaricamentoCombo.ComboBoxItem
        Me.CboNhomHH.Location = New System.Drawing.Point(77, 6)
        Me.CboNhomHH.ManagingFastMouseMoving = True
        Me.CboNhomHH.ManagingFastMouseMovingInterval = 30
        Me.CboNhomHH.Name = "CboNhomHH"
        Me.CboNhomHH.SelectedItem = Nothing
        Me.CboNhomHH.SelectedValue = Nothing
        Me.CboNhomHH.Size = New System.Drawing.Size(76, 21)
        Me.CboNhomHH.TabIndex = 9
        '
        'CboNhomDC
        '
        Me.CboNhomDC.ArrowBoxColor = System.Drawing.SystemColors.Control
        Me.CboNhomDC.ArrowColor = System.Drawing.Color.Black
        Me.CboNhomDC.BindedControl = Nothing
        Me.CboNhomDC.BorderStyle = MTGCComboBox.TipiBordi.Fixed3D
        Me.CboNhomDC.CharacterCasing = System.Windows.Forms.CharacterCasing.Normal
        Me.CboNhomDC.ColumnNum = 1
        Me.CboNhomDC.ColumnWidth = "121"
        Me.CboNhomDC.DisabledArrowBoxColor = System.Drawing.SystemColors.Control
        Me.CboNhomDC.DisabledArrowColor = System.Drawing.Color.LightGray
        Me.CboNhomDC.DisabledBackColor = System.Drawing.SystemColors.Control
        Me.CboNhomDC.DisabledBorderColor = System.Drawing.SystemColors.InactiveBorder
        Me.CboNhomDC.DisabledForeColor = System.Drawing.SystemColors.GrayText
        Me.CboNhomDC.DisplayMember = "Text"
        Me.CboNhomDC.DrawMode = System.Windows.Forms.DrawMode.OwnerDrawFixed
        Me.CboNhomDC.DropDownBackColor = System.Drawing.Color.FromArgb(CType(CType(193, Byte), Integer), CType(CType(210, Byte), Integer), CType(CType(238, Byte), Integer))
        Me.CboNhomDC.DropDownForeColor = System.Drawing.Color.Black
        Me.CboNhomDC.DropDownStyle = MTGCComboBox.CustomDropDownStyle.DropDown
        Me.CboNhomDC.DropDownWidth = 141
        Me.CboNhomDC.GridLineColor = System.Drawing.Color.LightGray
        Me.CboNhomDC.GridLineHorizontal = False
        Me.CboNhomDC.GridLineVertical = False
        Me.CboNhomDC.LoadingType = MTGCComboBox.CaricamentoCombo.ComboBoxItem
        Me.CboNhomDC.Location = New System.Drawing.Point(509, 7)
        Me.CboNhomDC.ManagingFastMouseMoving = True
        Me.CboNhomDC.ManagingFastMouseMovingInterval = 30
        Me.CboNhomDC.Name = "CboNhomDC"
        Me.CboNhomDC.SelectedItem = Nothing
        Me.CboNhomDC.SelectedValue = Nothing
        Me.CboNhomDC.Size = New System.Drawing.Size(76, 21)
        Me.CboNhomDC.TabIndex = 10
        '
        'TxtTenNhomDC
        '
        Me.TxtTenNhomDC.BackColor = System.Drawing.Color.White
        Me.TxtTenNhomDC.Font = New System.Drawing.Font("Arial", 9.75!, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, CType(0, Byte))
        Me.TxtTenNhomDC.Location = New System.Drawing.Point(585, 6)
        Me.TxtTenNhomDC.MaxLength = 10
        Me.TxtTenNhomDC.Name = "TxtTenNhomDC"
        Me.TxtTenNhomDC.ReadOnly = True
        Me.TxtTenNhomDC.Size = New System.Drawing.Size(196, 22)
        Me.TxtTenNhomDC.TabIndex = 85
        '
        'Label13
        '
        Me.Label13.Location = New System.Drawing.Point(435, 6)
        Me.Label13.Name = "Label13"
        Me.Label13.Size = New System.Drawing.Size(73, 20)
        Me.Label13.TabIndex = 86
        Me.Label13.Text = "Nhóm dược"
        Me.Label13.TextAlign = System.Drawing.ContentAlignment.MiddleRight
        '
        'TxtChietKhau
        '
        Me.TxtChietKhau.Font = New System.Drawing.Font("Arial", 9.75!, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, CType(0, Byte))
        Me.TxtChietKhau.Location = New System.Drawing.Point(509, 116)
        Me.TxtChietKhau.MaxLength = 10
        Me.TxtChietKhau.Name = "TxtChietKhau"
        Me.TxtChietKhau.Size = New System.Drawing.Size(76, 22)
        Me.TxtChietKhau.TabIndex = 13
        Me.TxtChietKhau.TextAlign = System.Windows.Forms.HorizontalAlignment.Right
        '
        'Label14
        '
        Me.Label14.Location = New System.Drawing.Point(431, 117)
        Me.Label14.Name = "Label14"
        Me.Label14.Size = New System.Drawing.Size(77, 19)
        Me.Label14.TabIndex = 89
        Me.Label14.Text = "Chiết Khấu (%)"
        Me.Label14.TextAlign = System.Drawing.ContentAlignment.MiddleRight
        '
        'TabMain
        '
        Me.TabMain.Controls.Add(Me.TabThongTin)
        Me.TabMain.Controls.Add(Me.TabTimKiem)
        Me.TabMain.Location = New System.Drawing.Point(-1, 30)
        Me.TabMain.Name = "TabMain"
        Me.TabMain.SelectedIndex = 0
        Me.TabMain.Size = New System.Drawing.Size(795, 547)
        Me.TabMain.TabIndex = 90
        '
        'TabThongTin
        '
        Me.TabThongTin.BackColor = System.Drawing.Color.LightBlue
        Me.TabThongTin.Controls.Add(Me.Label24)
        Me.TabThongTin.Controls.Add(Me.txtVAT)
        Me.TabThongTin.Controls.Add(Me.Label23)
        Me.TabThongTin.Controls.Add(Me.Cbo_NhaCungCap)
        Me.TabThongTin.Controls.Add(Me.txtTenNhaCungCap)
        Me.TabThongTin.Controls.Add(Me.chkbox_tinhtrang)
        Me.TabThongTin.Controls.Add(Me.Label22)
        Me.TabThongTin.Controls.Add(Me.txtGhiChu)
        Me.TabThongTin.Controls.Add(Me.Label21)
        Me.TabThongTin.Controls.Add(Me.txtDonGiaXa)
        Me.TabThongTin.Controls.Add(Me.txtMa_HH)
        Me.TabThongTin.Controls.Add(Me.Label14)
        Me.TabThongTin.Controls.Add(Me.Label2)
        Me.TabThongTin.Controls.Add(Me.TxtChietKhau)
        Me.TabThongTin.Controls.Add(Me.Label20)
        Me.TabThongTin.Controls.Add(Me.txtDonGiaHuyen)
        Me.TabThongTin.Controls.Add(Me.Label12)
        Me.TabThongTin.Controls.Add(Me.Label18)
        Me.TabThongTin.Controls.Add(Me.TxtQC_Thung)
        Me.TabThongTin.Controls.Add(Me.TxtDV_Thung)
        Me.TabThongTin.Controls.Add(Me.txtDonGiaTinh)
        Me.TabThongTin.Controls.Add(Me.TxtQC_Chan)
        Me.TabThongTin.Controls.Add(Me.Label19)
        Me.TabThongTin.Controls.Add(Me.TxtDV_Chan)
        Me.TabThongTin.Controls.Add(Me.txtDonGiaMua)
        Me.TabThongTin.Controls.Add(Me.TxtQC_Le)
        Me.TabThongTin.Controls.Add(Me.Label17)
        Me.TabThongTin.Controls.Add(Me.TxtDV_Le)
        Me.TabThongTin.Controls.Add(Me.txtDieuKien)
        Me.TabThongTin.Controls.Add(Me.Label15)
        Me.TabThongTin.Controls.Add(Me.txtSDK)
        Me.TabThongTin.Controls.Add(Me.grid_DanhSachHangHoa)
        Me.TabThongTin.Controls.Add(Me.btnSave)
        Me.TabThongTin.Controls.Add(Me.btnNew)
        Me.TabThongTin.Controls.Add(Me.CboNhomDC)
        Me.TabThongTin.Controls.Add(Me.btnDelete1)
        Me.TabThongTin.Controls.Add(Me.TxtTenNhomDC)
        Me.TabThongTin.Controls.Add(Me.BtnClose)
        Me.TabThongTin.Controls.Add(Me.Label13)
        Me.TabThongTin.Controls.Add(Me.Button1)
        Me.TabThongTin.Controls.Add(Me.CboNhomHH)
        Me.TabThongTin.Controls.Add(Me.Label3)
        Me.TabThongTin.Controls.Add(Me.Label4)
        Me.TabThongTin.Controls.Add(Me.txtTen_BD)
        Me.TabThongTin.Controls.Add(Me.txtTen_HD)
        Me.TabThongTin.Controls.Add(Me.Label5)
        Me.TabThongTin.Controls.Add(Me.TxtTenNhomHH)
        Me.TabThongTin.Controls.Add(Me.Label6)
        Me.TabThongTin.Controls.Add(Me.TxtHanDung)
        Me.TabThongTin.Controls.Add(Me.TxtGiaBan)
        Me.TabThongTin.Controls.Add(Me.Label10)
        Me.TabThongTin.Controls.Add(Me.Label7)
        Me.TabThongTin.Controls.Add(Me.TxtMax)
        Me.TabThongTin.Controls.Add(Me.TxtGiaSYT)
        Me.TabThongTin.Controls.Add(Me.Label9)
        Me.TabThongTin.Controls.Add(Me.Label8)
        Me.TabThongTin.Controls.Add(Me.TxtMin)
        Me.TabThongTin.Location = New System.Drawing.Point(4, 22)
        Me.TabThongTin.Name = "TabThongTin"
        Me.TabThongTin.Padding = New System.Windows.Forms.Padding(3)
        Me.TabThongTin.Size = New System.Drawing.Size(787, 521)
        Me.TabThongTin.TabIndex = 0
        Me.TabThongTin.Text = "Thông tin"
        '
        'Label24
        '
        Me.Label24.Location = New System.Drawing.Point(431, 144)
        Me.Label24.Name = "Label24"
        Me.Label24.Size = New System.Drawing.Size(77, 19)
        Me.Label24.TabIndex = 109
        Me.Label24.Text = "VAT (%)"
        Me.Label24.TextAlign = System.Drawing.ContentAlignment.MiddleRight
        '
        'txtVAT
        '
        Me.txtVAT.Font = New System.Drawing.Font("Arial", 9.75!, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, CType(0, Byte))
        Me.txtVAT.Location = New System.Drawing.Point(509, 143)
        Me.txtVAT.MaxLength = 10
        Me.txtVAT.Name = "txtVAT"
        Me.txtVAT.Size = New System.Drawing.Size(76, 22)
        Me.txtVAT.TabIndex = 108
        Me.txtVAT.TextAlign = System.Windows.Forms.HorizontalAlignment.Right
        '
        'Label23
        '
        Me.Label23.Location = New System.Drawing.Point(263, 33)
        Me.Label23.Name = "Label23"
        Me.Label23.Size = New System.Drawing.Size(90, 19)
        Me.Label23.TabIndex = 107
        Me.Label23.Text = "Nhà cung cấp"
        Me.Label23.TextAlign = System.Drawing.ContentAlignment.MiddleRight
        '
        'Cbo_NhaCungCap
        '
        Me.Cbo_NhaCungCap.ArrowBoxColor = System.Drawing.SystemColors.Control
        Me.Cbo_NhaCungCap.ArrowColor = System.Drawing.Color.Black
        Me.Cbo_NhaCungCap.BindedControl = Nothing
        Me.Cbo_NhaCungCap.BorderStyle = MTGCComboBox.TipiBordi.Fixed3D
        Me.Cbo_NhaCungCap.CharacterCasing = System.Windows.Forms.CharacterCasing.Normal
        Me.Cbo_NhaCungCap.ColumnNum = 1
        Me.Cbo_NhaCungCap.ColumnWidth = "121"
        Me.Cbo_NhaCungCap.DisabledArrowBoxColor = System.Drawing.SystemColors.Control
        Me.Cbo_NhaCungCap.DisabledArrowColor = System.Drawing.Color.LightGray
        Me.Cbo_NhaCungCap.DisabledBackColor = System.Drawing.SystemColors.Control
        Me.Cbo_NhaCungCap.DisabledBorderColor = System.Drawing.SystemColors.InactiveBorder
        Me.Cbo_NhaCungCap.DisabledForeColor = System.Drawing.SystemColors.GrayText
        Me.Cbo_NhaCungCap.DisplayMember = "Text"
        Me.Cbo_NhaCungCap.DrawMode = System.Windows.Forms.DrawMode.OwnerDrawFixed
        Me.Cbo_NhaCungCap.DropDownBackColor = System.Drawing.Color.FromArgb(CType(CType(193, Byte), Integer), CType(CType(210, Byte), Integer), CType(CType(238, Byte), Integer))
        Me.Cbo_NhaCungCap.DropDownForeColor = System.Drawing.Color.Black
        Me.Cbo_NhaCungCap.DropDownStyle = MTGCComboBox.CustomDropDownStyle.DropDown
        Me.Cbo_NhaCungCap.DropDownWidth = 141
        Me.Cbo_NhaCungCap.GridLineColor = System.Drawing.Color.LightGray
        Me.Cbo_NhaCungCap.GridLineHorizontal = False
        Me.Cbo_NhaCungCap.GridLineVertical = False
        Me.Cbo_NhaCungCap.LoadingType = MTGCComboBox.CaricamentoCombo.ComboBoxItem
        Me.Cbo_NhaCungCap.Location = New System.Drawing.Point(354, 32)
        Me.Cbo_NhaCungCap.ManagingFastMouseMoving = True
        Me.Cbo_NhaCungCap.ManagingFastMouseMovingInterval = 30
        Me.Cbo_NhaCungCap.Name = "Cbo_NhaCungCap"
        Me.Cbo_NhaCungCap.SelectedItem = Nothing
        Me.Cbo_NhaCungCap.SelectedValue = Nothing
        Me.Cbo_NhaCungCap.Size = New System.Drawing.Size(76, 21)
        Me.Cbo_NhaCungCap.TabIndex = 105
        '
        'txtTenNhaCungCap
        '
        Me.txtTenNhaCungCap.Font = New System.Drawing.Font("Arial", 9.75!, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, CType(0, Byte))
        Me.txtTenNhaCungCap.Location = New System.Drawing.Point(431, 32)
        Me.txtTenNhaCungCap.MaxLength = 10
        Me.txtTenNhaCungCap.Name = "txtTenNhaCungCap"
        Me.txtTenNhaCungCap.Size = New System.Drawing.Size(350, 22)
        Me.txtTenNhaCungCap.TabIndex = 106
        '
        'chkbox_tinhtrang
        '
        Me.chkbox_tinhtrang.AutoSize = True
        Me.chkbox_tinhtrang.Location = New System.Drawing.Point(155, 31)
        Me.chkbox_tinhtrang.Name = "chkbox_tinhtrang"
        Me.chkbox_tinhtrang.Size = New System.Drawing.Size(62, 17)
        Me.chkbox_tinhtrang.TabIndex = 104
        Me.chkbox_tinhtrang.Text = "Hiển thị"
        Me.chkbox_tinhtrang.UseVisualStyleBackColor = True
        '
        'Label22
        '
        Me.Label22.Location = New System.Drawing.Point(11, 91)
        Me.Label22.Name = "Label22"
        Me.Label22.Size = New System.Drawing.Size(63, 19)
        Me.Label22.TabIndex = 103
        Me.Label22.Text = "Ghi chú"
        Me.Label22.TextAlign = System.Drawing.ContentAlignment.MiddleRight
        '
        'txtGhiChu
        '
        Me.txtGhiChu.Font = New System.Drawing.Font("Arial", 9.75!, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, CType(0, Byte))
        Me.txtGhiChu.Location = New System.Drawing.Point(77, 88)
        Me.txtGhiChu.MaxLength = 50
        Me.txtGhiChu.Name = "txtGhiChu"
        Me.txtGhiChu.Size = New System.Drawing.Size(353, 22)
        Me.txtGhiChu.TabIndex = 102
        '
        'Label21
        '
        Me.Label21.Location = New System.Drawing.Point(311, 145)
        Me.Label21.Name = "Label21"
        Me.Label21.Size = New System.Drawing.Size(40, 19)
        Me.Label21.TabIndex = 101
        Me.Label21.Text = "ĐG Xã"
        Me.Label21.TextAlign = System.Drawing.ContentAlignment.MiddleRight
        '
        'txtDonGiaXa
        '
        Me.txtDonGiaXa.Font = New System.Drawing.Font("Arial", 9.75!, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, CType(0, Byte))
        Me.txtDonGiaXa.Location = New System.Drawing.Point(354, 144)
        Me.txtDonGiaXa.MaxLength = 10
        Me.txtDonGiaXa.Name = "txtDonGiaXa"
        Me.txtDonGiaXa.Size = New System.Drawing.Size(76, 22)
        Me.txtDonGiaXa.TabIndex = 100
        Me.txtDonGiaXa.TextAlign = System.Windows.Forms.HorizontalAlignment.Right
        '
        'Label20
        '
        Me.Label20.Location = New System.Drawing.Point(154, 146)
        Me.Label20.Name = "Label20"
        Me.Label20.Size = New System.Drawing.Size(57, 19)
        Me.Label20.TabIndex = 99
        Me.Label20.Text = "ĐG Huyện"
        Me.Label20.TextAlign = System.Drawing.ContentAlignment.MiddleRight
        '
        'txtDonGiaHuyen
        '
        Me.txtDonGiaHuyen.Font = New System.Drawing.Font("Arial", 9.75!, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, CType(0, Byte))
        Me.txtDonGiaHuyen.Location = New System.Drawing.Point(219, 144)
        Me.txtDonGiaHuyen.MaxLength = 10
        Me.txtDonGiaHuyen.Name = "txtDonGiaHuyen"
        Me.txtDonGiaHuyen.Size = New System.Drawing.Size(76, 22)
        Me.txtDonGiaHuyen.TabIndex = 98
        Me.txtDonGiaHuyen.TextAlign = System.Windows.Forms.HorizontalAlignment.Right
        '
        'Label18
        '
        Me.Label18.Location = New System.Drawing.Point(23, 146)
        Me.Label18.Name = "Label18"
        Me.Label18.Size = New System.Drawing.Size(50, 19)
        Me.Label18.TabIndex = 96
        Me.Label18.Text = "ĐG Tỉnh"
        Me.Label18.TextAlign = System.Drawing.ContentAlignment.MiddleRight
        '
        'txtDonGiaTinh
        '
        Me.txtDonGiaTinh.Font = New System.Drawing.Font("Arial", 9.75!, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, CType(0, Byte))
        Me.txtDonGiaTinh.Location = New System.Drawing.Point(77, 144)
        Me.txtDonGiaTinh.MaxLength = 10
        Me.txtDonGiaTinh.Name = "txtDonGiaTinh"
        Me.txtDonGiaTinh.Size = New System.Drawing.Size(76, 22)
        Me.txtDonGiaTinh.TabIndex = 94
        Me.txtDonGiaTinh.TextAlign = System.Windows.Forms.HorizontalAlignment.Right
        '
        'Label19
        '
        Me.Label19.Location = New System.Drawing.Point(162, 117)
        Me.Label19.Name = "Label19"
        Me.Label19.Size = New System.Drawing.Size(48, 19)
        Me.Label19.TabIndex = 97
        Me.Label19.Text = "ĐG mua"
        Me.Label19.TextAlign = System.Drawing.ContentAlignment.MiddleRight
        '
        'txtDonGiaMua
        '
        Me.txtDonGiaMua.Font = New System.Drawing.Font("Arial", 9.75!, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, CType(0, Byte))
        Me.txtDonGiaMua.Location = New System.Drawing.Point(219, 116)
        Me.txtDonGiaMua.MaxLength = 10
        Me.txtDonGiaMua.Name = "txtDonGiaMua"
        Me.txtDonGiaMua.Size = New System.Drawing.Size(76, 22)
        Me.txtDonGiaMua.TabIndex = 95
        Me.txtDonGiaMua.TextAlign = System.Windows.Forms.HorizontalAlignment.Right
        '
        'Label17
        '
        Me.Label17.Location = New System.Drawing.Point(407, 202)
        Me.Label17.Name = "Label17"
        Me.Label17.Size = New System.Drawing.Size(100, 17)
        Me.Label17.TabIndex = 93
        Me.Label17.Text = "Điều kiện bảo quản"
        Me.Label17.TextAlign = System.Drawing.ContentAlignment.MiddleRight
        '
        'txtDieuKien
        '
        Me.txtDieuKien.Font = New System.Drawing.Font("Arial", 9.75!, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, CType(0, Byte))
        Me.txtDieuKien.Location = New System.Drawing.Point(509, 200)
        Me.txtDieuKien.MaxLength = 10000
        Me.txtDieuKien.Name = "txtDieuKien"
        Me.txtDieuKien.Size = New System.Drawing.Size(272, 22)
        Me.txtDieuKien.TabIndex = 18
        '
        'Label15
        '
        Me.Label15.Location = New System.Drawing.Point(13, 202)
        Me.Label15.Name = "Label15"
        Me.Label15.Size = New System.Drawing.Size(62, 17)
        Me.Label15.TabIndex = 91
        Me.Label15.Text = "Số đăng ký"
        Me.Label15.TextAlign = System.Drawing.ContentAlignment.MiddleRight
        '
        'txtSDK
        '
        Me.txtSDK.Font = New System.Drawing.Font("Arial", 9.75!, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, CType(0, Byte))
        Me.txtSDK.Location = New System.Drawing.Point(77, 200)
        Me.txtSDK.MaxLength = 10000
        Me.txtSDK.Name = "txtSDK"
        Me.txtSDK.Size = New System.Drawing.Size(218, 22)
        Me.txtSDK.TabIndex = 17
        '
        'TabTimKiem
        '
        Me.TabTimKiem.BackColor = System.Drawing.Color.LightBlue
        Me.TabTimKiem.Controls.Add(Me.Label25)
        Me.TabTimKiem.Controls.Add(Me.TextBoxVat)
        Me.TabTimKiem.Controls.Add(Me.Label16)
        Me.TabTimKiem.Controls.Add(Me.txtMaSearch)
        Me.TabTimKiem.Controls.Add(Me.btnTimKiem)
        Me.TabTimKiem.Controls.Add(Me.txtTenSearch)
        Me.TabTimKiem.Controls.Add(Me.Label11)
        Me.TabTimKiem.Controls.Add(Me.gridSearch)
        Me.TabTimKiem.Location = New System.Drawing.Point(4, 22)
        Me.TabTimKiem.Name = "TabTimKiem"
        Me.TabTimKiem.Padding = New System.Windows.Forms.Padding(3)
        Me.TabTimKiem.Size = New System.Drawing.Size(787, 521)
        Me.TabTimKiem.TabIndex = 1
        Me.TabTimKiem.Text = "Tìm kiếm"
        '
        'Label25
        '
        Me.Label25.AutoSize = True
        Me.Label25.Location = New System.Drawing.Point(237, 67)
        Me.Label25.Name = "Label25"
        Me.Label25.Size = New System.Drawing.Size(23, 13)
        Me.Label25.TabIndex = 77
        Me.Label25.Text = "Vat"
        '
        'TextBoxVat
        '
        Me.TextBoxVat.Location = New System.Drawing.Point(266, 64)
        Me.TextBoxVat.Name = "TextBoxVat"
        Me.TextBoxVat.Size = New System.Drawing.Size(90, 20)
        Me.TextBoxVat.TabIndex = 76
        '
        'Label16
        '
        Me.Label16.AutoSize = True
        Me.Label16.Location = New System.Drawing.Point(186, 15)
        Me.Label16.Name = "Label16"
        Me.Label16.Size = New System.Drawing.Size(74, 13)
        Me.Label16.TabIndex = 75
        Me.Label16.Text = "Mã Hàng Hoá"
        '
        'txtMaSearch
        '
        Me.txtMaSearch.Location = New System.Drawing.Point(265, 12)
        Me.txtMaSearch.Name = "txtMaSearch"
        Me.txtMaSearch.Size = New System.Drawing.Size(203, 20)
        Me.txtMaSearch.TabIndex = 74
        '
        'btnTimKiem
        '
        Me.btnTimKiem.Location = New System.Drawing.Point(265, 90)
        Me.btnTimKiem.Name = "btnTimKiem"
        Me.btnTimKiem.Size = New System.Drawing.Size(91, 23)
        Me.btnTimKiem.TabIndex = 77
        Me.btnTimKiem.Text = "Tìm kiếm..."
        Me.btnTimKiem.UseVisualStyleBackColor = True
        '
        'txtTenSearch
        '
        Me.txtTenSearch.Location = New System.Drawing.Point(266, 38)
        Me.txtTenSearch.Name = "txtTenSearch"
        Me.txtTenSearch.Size = New System.Drawing.Size(202, 20)
        Me.txtTenSearch.TabIndex = 75
        '
        'Label11
        '
        Me.Label11.AutoSize = True
        Me.Label11.Location = New System.Drawing.Point(186, 41)
        Me.Label11.Name = "Label11"
        Me.Label11.Size = New System.Drawing.Size(78, 13)
        Me.Label11.TabIndex = 71
        Me.Label11.Text = "Tên Hàng Hoá"
        '
        'gridSearch
        '
        Me.gridSearch.AutoGenerateColumns = False
        Me.gridSearch.ColumnHeadersHeightSizeMode = System.Windows.Forms.DataGridViewColumnHeadersHeightSizeMode.AutoSize
        Me.gridSearch.Columns.AddRange(New System.Windows.Forms.DataGridViewColumn() {Me.MahanghoaDataGridViewTextBoxColumn1, Me.TenbietduocDataGridViewTextBoxColumn1, Me.TenhoaduocDataGridViewTextBoxColumn1, Me.DonvithungDataGridViewTextBoxColumn1, Me.QuicachthungDataGridViewTextBoxColumn1, Me.DonvibanchanDataGridViewTextBoxColumn1, Me.QuicachbanchanDataGridViewTextBoxColumn1, Me.DonvibanleDataGridViewTextBoxColumn1, Me.QuicachbanleDataGridViewTextBoxColumn1, Me.DongiaboDataGridViewTextBoxColumn1, Me.DongiabanDataGridViewTextBoxColumn1, Me.ChietkhauDataGridViewTextBoxColumn1, Me.ManhomhanghoaDataGridViewTextBoxColumn, Me.MaduocchinhDataGridViewTextBoxColumn, Me.HandungDataGridViewTextBoxColumn1, Me.MinDataGridViewTextBoxColumn1, Me.MaxDataGridViewTextBoxColumn1, Me.SdkDataGridViewTextBoxColumn1, Me.DkbaoquanDataGridViewTextBoxColumn1, Me.DongiamuaDataGridViewTextBoxColumn, Me.DongiatinhDataGridViewTextBoxColumn, Me.DongiahuyenDataGridViewTextBoxColumn, Me.DongiaxaDataGridViewTextBoxColumn, Me.GhichuDataGridViewTextBoxColumn1, Me.TinhtrangDataGridViewTextBoxColumn1, Me.ManhacungcapDataGridViewTextBoxColumn, Me.VatDataGridViewTextBoxColumn1})
        Me.gridSearch.DataMember = "tbl_hanghoa"
        Me.gridSearch.DataSource = Me.DataSetFormDonBindingSource1
        Me.gridSearch.Location = New System.Drawing.Point(9, 119)
        Me.gridSearch.Name = "gridSearch"
        Me.gridSearch.Size = New System.Drawing.Size(768, 362)
        Me.gridSearch.TabIndex = 69
        '
        'MahanghoaDataGridViewTextBoxColumn1
        '
        Me.MahanghoaDataGridViewTextBoxColumn1.DataPropertyName = "ma_hanghoa"
        Me.MahanghoaDataGridViewTextBoxColumn1.HeaderText = "Mã"
        Me.MahanghoaDataGridViewTextBoxColumn1.Name = "MahanghoaDataGridViewTextBoxColumn1"
        '
        'TenbietduocDataGridViewTextBoxColumn1
        '
        Me.TenbietduocDataGridViewTextBoxColumn1.DataPropertyName = "ten_bietduoc"
        Me.TenbietduocDataGridViewTextBoxColumn1.HeaderText = "Tên "
        Me.TenbietduocDataGridViewTextBoxColumn1.Name = "TenbietduocDataGridViewTextBoxColumn1"
        Me.TenbietduocDataGridViewTextBoxColumn1.Width = 150
        '
        'TenhoaduocDataGridViewTextBoxColumn1
        '
        Me.TenhoaduocDataGridViewTextBoxColumn1.DataPropertyName = "ten_hoaduoc"
        Me.TenhoaduocDataGridViewTextBoxColumn1.HeaderText = "ten_hoaduoc"
        Me.TenhoaduocDataGridViewTextBoxColumn1.Name = "TenhoaduocDataGridViewTextBoxColumn1"
        Me.TenhoaduocDataGridViewTextBoxColumn1.Visible = False
        '
        'DonvithungDataGridViewTextBoxColumn1
        '
        Me.DonvithungDataGridViewTextBoxColumn1.DataPropertyName = "donvi_thung"
        Me.DonvithungDataGridViewTextBoxColumn1.HeaderText = "DV"
        Me.DonvithungDataGridViewTextBoxColumn1.Name = "DonvithungDataGridViewTextBoxColumn1"
        Me.DonvithungDataGridViewTextBoxColumn1.Width = 50
        '
        'QuicachthungDataGridViewTextBoxColumn1
        '
        Me.QuicachthungDataGridViewTextBoxColumn1.DataPropertyName = "quicach_thung"
        Me.QuicachthungDataGridViewTextBoxColumn1.HeaderText = "Qui cách"
        Me.QuicachthungDataGridViewTextBoxColumn1.Name = "QuicachthungDataGridViewTextBoxColumn1"
        Me.QuicachthungDataGridViewTextBoxColumn1.Width = 50
        '
        'DonvibanchanDataGridViewTextBoxColumn1
        '
        Me.DonvibanchanDataGridViewTextBoxColumn1.DataPropertyName = "donvi_banchan"
        Me.DonvibanchanDataGridViewTextBoxColumn1.HeaderText = "DV chẵn"
        Me.DonvibanchanDataGridViewTextBoxColumn1.Name = "DonvibanchanDataGridViewTextBoxColumn1"
        Me.DonvibanchanDataGridViewTextBoxColumn1.Width = 50
        '
        'QuicachbanchanDataGridViewTextBoxColumn1
        '
        Me.QuicachbanchanDataGridViewTextBoxColumn1.DataPropertyName = "quicach_banchan"
        Me.QuicachbanchanDataGridViewTextBoxColumn1.HeaderText = "QC Chẵn"
        Me.QuicachbanchanDataGridViewTextBoxColumn1.Name = "QuicachbanchanDataGridViewTextBoxColumn1"
        Me.QuicachbanchanDataGridViewTextBoxColumn1.Width = 50
        '
        'DonvibanleDataGridViewTextBoxColumn1
        '
        Me.DonvibanleDataGridViewTextBoxColumn1.DataPropertyName = "donvi_banle"
        Me.DonvibanleDataGridViewTextBoxColumn1.HeaderText = "DV lẻ"
        Me.DonvibanleDataGridViewTextBoxColumn1.Name = "DonvibanleDataGridViewTextBoxColumn1"
        Me.DonvibanleDataGridViewTextBoxColumn1.Width = 50
        '
        'QuicachbanleDataGridViewTextBoxColumn1
        '
        Me.QuicachbanleDataGridViewTextBoxColumn1.DataPropertyName = "quicach_banle"
        Me.QuicachbanleDataGridViewTextBoxColumn1.HeaderText = "QC lẻ"
        Me.QuicachbanleDataGridViewTextBoxColumn1.Name = "QuicachbanleDataGridViewTextBoxColumn1"
        Me.QuicachbanleDataGridViewTextBoxColumn1.Width = 50
        '
        'DongiaboDataGridViewTextBoxColumn1
        '
        Me.DongiaboDataGridViewTextBoxColumn1.DataPropertyName = "dongia_bo"
        DataGridViewCellStyle6.Alignment = System.Windows.Forms.DataGridViewContentAlignment.MiddleRight
        DataGridViewCellStyle6.BackColor = System.Drawing.SystemColors.Info
        DataGridViewCellStyle6.Format = "N0"
        Me.DongiaboDataGridViewTextBoxColumn1.DefaultCellStyle = DataGridViewCellStyle6
        Me.DongiaboDataGridViewTextBoxColumn1.HeaderText = "Đơn giá bộ"
        Me.DongiaboDataGridViewTextBoxColumn1.Name = "DongiaboDataGridViewTextBoxColumn1"
        '
        'DongiabanDataGridViewTextBoxColumn1
        '
        Me.DongiabanDataGridViewTextBoxColumn1.DataPropertyName = "dongia_ban"
        DataGridViewCellStyle7.Alignment = System.Windows.Forms.DataGridViewContentAlignment.MiddleRight
        DataGridViewCellStyle7.BackColor = System.Drawing.SystemColors.Info
        DataGridViewCellStyle7.Format = "N0"
        Me.DongiabanDataGridViewTextBoxColumn1.DefaultCellStyle = DataGridViewCellStyle7
        Me.DongiabanDataGridViewTextBoxColumn1.HeaderText = "Đơn giá bán"
        Me.DongiabanDataGridViewTextBoxColumn1.Name = "DongiabanDataGridViewTextBoxColumn1"
        '
        'ChietkhauDataGridViewTextBoxColumn1
        '
        Me.ChietkhauDataGridViewTextBoxColumn1.DataPropertyName = "chietkhau"
        Me.ChietkhauDataGridViewTextBoxColumn1.HeaderText = "Chiết khấu"
        Me.ChietkhauDataGridViewTextBoxColumn1.Name = "ChietkhauDataGridViewTextBoxColumn1"
        Me.ChietkhauDataGridViewTextBoxColumn1.Width = 50
        '
        'ManhomhanghoaDataGridViewTextBoxColumn
        '
        Me.ManhomhanghoaDataGridViewTextBoxColumn.DataPropertyName = "ma_nhomhanghoa"
        Me.ManhomhanghoaDataGridViewTextBoxColumn.HeaderText = "ma_nhomhanghoa"
        Me.ManhomhanghoaDataGridViewTextBoxColumn.Name = "ManhomhanghoaDataGridViewTextBoxColumn"
        Me.ManhomhanghoaDataGridViewTextBoxColumn.Visible = False
        '
        'MaduocchinhDataGridViewTextBoxColumn
        '
        Me.MaduocchinhDataGridViewTextBoxColumn.DataPropertyName = "ma_duocchinh"
        Me.MaduocchinhDataGridViewTextBoxColumn.HeaderText = "ma_duocchinh"
        Me.MaduocchinhDataGridViewTextBoxColumn.Name = "MaduocchinhDataGridViewTextBoxColumn"
        Me.MaduocchinhDataGridViewTextBoxColumn.Visible = False
        '
        'HandungDataGridViewTextBoxColumn1
        '
        Me.HandungDataGridViewTextBoxColumn1.DataPropertyName = "handung"
        Me.HandungDataGridViewTextBoxColumn1.HeaderText = "handung"
        Me.HandungDataGridViewTextBoxColumn1.Name = "HandungDataGridViewTextBoxColumn1"
        Me.HandungDataGridViewTextBoxColumn1.Visible = False
        '
        'MinDataGridViewTextBoxColumn1
        '
        Me.MinDataGridViewTextBoxColumn1.DataPropertyName = "min_"
        Me.MinDataGridViewTextBoxColumn1.HeaderText = "min_"
        Me.MinDataGridViewTextBoxColumn1.Name = "MinDataGridViewTextBoxColumn1"
        Me.MinDataGridViewTextBoxColumn1.Visible = False
        '
        'MaxDataGridViewTextBoxColumn1
        '
        Me.MaxDataGridViewTextBoxColumn1.DataPropertyName = "max_"
        Me.MaxDataGridViewTextBoxColumn1.HeaderText = "max_"
        Me.MaxDataGridViewTextBoxColumn1.Name = "MaxDataGridViewTextBoxColumn1"
        Me.MaxDataGridViewTextBoxColumn1.Visible = False
        '
        'SdkDataGridViewTextBoxColumn1
        '
        Me.SdkDataGridViewTextBoxColumn1.DataPropertyName = "sdk"
        Me.SdkDataGridViewTextBoxColumn1.HeaderText = "sdk"
        Me.SdkDataGridViewTextBoxColumn1.Name = "SdkDataGridViewTextBoxColumn1"
        Me.SdkDataGridViewTextBoxColumn1.Visible = False
        '
        'DkbaoquanDataGridViewTextBoxColumn1
        '
        Me.DkbaoquanDataGridViewTextBoxColumn1.DataPropertyName = "dkbaoquan"
        Me.DkbaoquanDataGridViewTextBoxColumn1.HeaderText = "dkbaoquan"
        Me.DkbaoquanDataGridViewTextBoxColumn1.Name = "DkbaoquanDataGridViewTextBoxColumn1"
        Me.DkbaoquanDataGridViewTextBoxColumn1.Visible = False
        '
        'DongiamuaDataGridViewTextBoxColumn
        '
        Me.DongiamuaDataGridViewTextBoxColumn.DataPropertyName = "dongia_mua"
        Me.DongiamuaDataGridViewTextBoxColumn.HeaderText = "dongia_mua"
        Me.DongiamuaDataGridViewTextBoxColumn.Name = "DongiamuaDataGridViewTextBoxColumn"
        Me.DongiamuaDataGridViewTextBoxColumn.Visible = False
        '
        'DongiatinhDataGridViewTextBoxColumn
        '
        Me.DongiatinhDataGridViewTextBoxColumn.DataPropertyName = "dongia_tinh"
        Me.DongiatinhDataGridViewTextBoxColumn.HeaderText = "dongia_tinh"
        Me.DongiatinhDataGridViewTextBoxColumn.Name = "DongiatinhDataGridViewTextBoxColumn"
        Me.DongiatinhDataGridViewTextBoxColumn.Visible = False
        '
        'DongiahuyenDataGridViewTextBoxColumn
        '
        Me.DongiahuyenDataGridViewTextBoxColumn.DataPropertyName = "dongia_huyen"
        Me.DongiahuyenDataGridViewTextBoxColumn.HeaderText = "dongia_huyen"
        Me.DongiahuyenDataGridViewTextBoxColumn.Name = "DongiahuyenDataGridViewTextBoxColumn"
        Me.DongiahuyenDataGridViewTextBoxColumn.Visible = False
        '
        'DongiaxaDataGridViewTextBoxColumn
        '
        Me.DongiaxaDataGridViewTextBoxColumn.DataPropertyName = "dongia_xa"
        Me.DongiaxaDataGridViewTextBoxColumn.HeaderText = "dongia_xa"
        Me.DongiaxaDataGridViewTextBoxColumn.Name = "DongiaxaDataGridViewTextBoxColumn"
        Me.DongiaxaDataGridViewTextBoxColumn.Visible = False
        '
        'GhichuDataGridViewTextBoxColumn1
        '
        Me.GhichuDataGridViewTextBoxColumn1.DataPropertyName = "ghichu"
        Me.GhichuDataGridViewTextBoxColumn1.HeaderText = "ghichu"
        Me.GhichuDataGridViewTextBoxColumn1.Name = "GhichuDataGridViewTextBoxColumn1"
        Me.GhichuDataGridViewTextBoxColumn1.Visible = False
        '
        'TinhtrangDataGridViewTextBoxColumn1
        '
        Me.TinhtrangDataGridViewTextBoxColumn1.DataPropertyName = "tinhtrang"
        Me.TinhtrangDataGridViewTextBoxColumn1.HeaderText = "tinhtrang"
        Me.TinhtrangDataGridViewTextBoxColumn1.Name = "TinhtrangDataGridViewTextBoxColumn1"
        Me.TinhtrangDataGridViewTextBoxColumn1.Visible = False
        '
        'ManhacungcapDataGridViewTextBoxColumn
        '
        Me.ManhacungcapDataGridViewTextBoxColumn.DataPropertyName = "ma_nhacungcap"
        Me.ManhacungcapDataGridViewTextBoxColumn.HeaderText = "ma_nhacungcap"
        Me.ManhacungcapDataGridViewTextBoxColumn.Name = "ManhacungcapDataGridViewTextBoxColumn"
        Me.ManhacungcapDataGridViewTextBoxColumn.Visible = False
        '
        'VatDataGridViewTextBoxColumn1
        '
        Me.VatDataGridViewTextBoxColumn1.DataPropertyName = "vat"
        Me.VatDataGridViewTextBoxColumn1.HeaderText = "Vat"
        Me.VatDataGridViewTextBoxColumn1.Name = "VatDataGridViewTextBoxColumn1"
        Me.VatDataGridViewTextBoxColumn1.Width = 50
        '
        'DataSetFormDonBindingSource1
        '
        Me.DataSetFormDonBindingSource1.DataSource = Me.DataSetForm_Don
        Me.DataSetFormDonBindingSource1.Position = 0
        '
        'frmHangHoa
        '
        Me.AutoScaleBaseSize = New System.Drawing.Size(5, 13)
        Me.BackColor = System.Drawing.Color.LightBlue
        Me.ClientSize = New System.Drawing.Size(792, 573)
        Me.Controls.Add(Me.TabMain)
        Me.Controls.Add(Me.Label1)
        Me.MaximizeBox = False
        Me.Name = "frmHangHoa"
        Me.StartPosition = System.Windows.Forms.FormStartPosition.CenterScreen
        Me.Text = "Danh Muc Hang Hoa"
        CType(Me.grid_DanhSachHangHoa, System.ComponentModel.ISupportInitialize).EndInit()
        CType(Me.DataSetFormDonBindingSource, System.ComponentModel.ISupportInitialize).EndInit()
        CType(Me.DataSetForm_Don, System.ComponentModel.ISupportInitialize).EndInit()
        Me.TabMain.ResumeLayout(False)
        Me.TabThongTin.ResumeLayout(False)
        Me.TabThongTin.PerformLayout()
        Me.TabTimKiem.ResumeLayout(False)
        Me.TabTimKiem.PerformLayout()
        CType(Me.gridSearch, System.ComponentModel.ISupportInitialize).EndInit()
        CType(Me.DataSetFormDonBindingSource1, System.ComponentModel.ISupportInitialize).EndInit()
        Me.ResumeLayout(False)

    End Sub

#End Region
    Private dataHangHoa, dataNhomHangHoa, dataNhomDuocChinh, dataNhomNhaCungCap As DataTable
    Private da As MySqlDataAdapter
    Dim myDT As New DataTable
    Dim strError As String = ""
    Dim myform As Form
    Dim sqlQuery As String = ""
    Dim positionHangHoa As Integer = 0
    Sub SetclearData()
        txtMa_HH.Text = ""
        txtTen_BD.Text = ""
        txtTen_HD.Text = ""
        TxtTenNhomHH.Text = ""
        TxtTenNhomDC.Text = ""
        CboNhomHH.Text = ""
        CboNhomDC.Text = ""
        TxtQC_Thung.Text = "1"
        TxtDV_Thung.Text = "thùng"
        TxtQC_Chan.Text = "30"
        TxtDV_Chan.Text = "hộp"
        TxtQC_Le.Text = "20"
        TxtDV_Le.Text = "gói"
        TxtGiaBan.Text = "0"
        TxtGiaSYT.Text = "0"
        Me.txtDonGiaTinh.Text = "0"
        Me.txtDonGiaMua.Text = "0"
        Me.txtDonGiaHuyen.Text = "0"
        Me.txtDonGiaXa.Text = "0"
        TxtChietKhau.Text = "0"
        TxtHanDung.Text = "12"
        TxtMax.Text = "0"
        TxtMin.Text = "0"
        txtSDK.Text = ""
        txtDieuKien.Text = ""
    End Sub

    Private Sub btnSave_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles btnSave.Click
        ' Kiểm tra có nhập liệu chưa ?
        If Me.checkInput() Then
            Dim txtMaNH = Me.txtMa_HH.Text.Trim
            sqlQuery = "SELECT ma_hanghoa FROM tbl_hanghoa WHERE ma_hanghoa  = '" & txtMaNH & "'"
            Dim existedMamon As Integer = moduleDatabaseConn.CheckRecordExisted(sqlQuery)

            If existedMamon = 1 Then ' Update record
                moduleConstants.MessageWarning = "Mã đã tồn tại , bạn có muốn cập nhật không ?"
                If MessageBox.Show(moduleConstants.MessageWarning, globalVariale.msgTitle, MessageBoxButtons.YesNo, MessageBoxIcon.Warning) = MsgBoxResult.Yes Then
                    Try
                        sqlQuery = "UPDATE tbl_hanghoa  "
                        sqlQuery += "SET "
                        sqlQuery += "ma_hanghoa  = '" & txtMaNH & "'"
                        sqlQuery += ", ten_bietduoc= '" & Me.txtTen_BD.Text.Trim & "'"
                        sqlQuery += ", ten_hoaduoc= '" & Me.txtTen_HD.Text.Trim & "'"
                        sqlQuery += ", donvi_thung= '" & Me.TxtDV_Thung.Text.Trim & "'"
                        sqlQuery += ", quicach_thung= '" & Me.TxtQC_Thung.Text.Trim & "'"
                        sqlQuery += ", donvi_banchan= '" & Me.TxtDV_Chan.Text.Trim & "'"
                        sqlQuery += ", quicach_banchan= '" & Me.TxtQC_Chan.Text.Trim & "'"
                        sqlQuery += ", donvi_banle= '" & Me.TxtDV_Le.Text.Trim & "'"
                        sqlQuery += ", quicach_banle= '" & Me.TxtQC_Le.Text.Trim & "'"
                        sqlQuery += ", dongia_bo= '" & Replace(CDec(Me.TxtGiaSYT.Text.Trim), ",", ".") & "'"
                        sqlQuery += ", dongia_ban= '" & Replace(CDec(Me.TxtGiaBan.Text.Trim), ",", ".") & "'"

                        sqlQuery += ", dongia_mua= '" & Replace(CDec(Me.txtDonGiaMua.Text.Trim), ",", ".") & "'"
                        sqlQuery += ", dongia_tinh= '" & Replace(CDec(Me.txtDonGiaTinh.Text.Trim), ",", ".") & "'"
                        sqlQuery += ", dongia_huyen= '" & Replace(CDec(Me.txtDonGiaHuyen.Text.Trim), ",", ".") & "'"
                        sqlQuery += ", dongia_xa= '" & Replace(CDec(Me.txtDonGiaXa.Text.Trim), ",", ".") & "'"
                        sqlQuery += ", ghichu= '" & Me.txtGhiChu.Text.Trim & "'"
                        If Me.chkbox_tinhtrang.Checked = True Then
                            sqlQuery += ", tinhtrang= 1"
                        Else
                            sqlQuery += ", tinhtrang= 0"
                        End If
                        sqlQuery += ", chietkhau= '" & Replace(CDec(Me.TxtChietKhau.Text.Trim), ",", ".") & "'"
                        sqlQuery += ", vat= '" & Replace(CDec(Me.txtVAT.Text.Trim), ",", ".") & "'"
                        sqlQuery += ", ma_nhomhanghoa= '" & Me.CboNhomHH.Text.Trim & "'"
                        sqlQuery += ", ma_duocchinh= '" & Me.CboNhomDC.Text.Trim & "'"
                        sqlQuery += ", handung= '" & Me.TxtHanDung.Text.Trim & "'"
                        sqlQuery += ", min_ = '" & CInt(Me.TxtMin.Text.Trim) & "'"
                        sqlQuery += ", max_ = '" & CInt(Me.TxtMax.Text.Trim) & "'"
                        sqlQuery += ", sdk = '" & Me.txtSDK.Text.Trim & "'"
                        sqlQuery += ", dkbaoquan = '" & Me.txtDieuKien.Text.Trim & "'"
                        sqlQuery += ", ma_nhacungcap = '" & Me.Cbo_NhaCungCap.Text.Trim & "'"
                        sqlQuery += " WHERE ma_hanghoa = '" & txtMa_HH.Text.Trim & "'"
                    Catch ex As Exception
                        MessageBox.Show("thông tin chưa hợp lệ - mời bạn kiểm tra lại!!!")
                        Me.txtMa_HH.Focus()
                    End Try
                    Dim updated As Integer = moduleDatabaseConn.ExecuteNonQuery(sqlQuery)
                    If updated = 1 Then
                        MessageBox.Show("Cập nhật thông tin thành công !")
                        sqlQuery = "SELECT * FROM tbl_hanghoa WHERE ma_nhomhanghoa = '" & Me.CboNhomHH.Text.Trim & "'"
                        Me.loadDanhSachHangHoa()
                    Else
                        MessageBox.Show("Cập nhật thông tin không thành công: " & globalVariale.sqlMsgError)
                    End If
                End If
            Else
                If existedMamon = 0 Then ' Insert record
                    Try
                        sqlQuery = "INSERT INTO tbl_hanghoa "
                        sqlQuery += "(ma_hanghoa, ten_bietduoc, ten_hoaduoc, donvi_thung, quicach_thung"
                        sqlQuery += ", donvi_banchan, quicach_banchan, donvi_banle, quicach_banle"
                        sqlQuery += ", dongia_bo, dongia_ban, chietkhau, vat, ma_nhomhanghoa"
                        sqlQuery += ", ma_duocchinh, handung, min_, max_, sdk, dkbaoquan"
                        sqlQuery += ", ma_nhacungcap, dongia_mua, dongia_tinh, dongia_huyen, dongia_xa, tinhtrang, ghichu)"
                        sqlQuery += "VALUES "
                        sqlQuery += "("
                        sqlQuery += "'" & txtMaNH.ToUpper & "', "
                        sqlQuery += " '" & Me.txtTen_BD.Text.Trim & "',"
                        sqlQuery += "  '" & Me.txtTen_HD.Text.Trim & "',"
                        sqlQuery += " '" & Me.TxtDV_Thung.Text.Trim & "',"
                        sqlQuery += " '" & CInt(Me.TxtQC_Thung.Text.Trim) & "',"
                        sqlQuery += " '" & Me.TxtDV_Chan.Text.Trim & "',"
                        sqlQuery += " '" & CInt(Me.TxtQC_Chan.Text.Trim) & "',"
                        sqlQuery += " '" & Me.TxtDV_Le.Text.Trim & "',"
                        sqlQuery += " '" & Me.TxtQC_Le.Text.Trim & "',"
                        sqlQuery += " '" & Replace(CDec(Me.TxtGiaSYT.Text.Trim), ",", ".") & "',"
                        sqlQuery += " '" & Replace(CDec(Me.TxtGiaBan.Text.Trim), ",", ".") & "',"
                        sqlQuery += " '" & Replace(CDec(Me.TxtChietKhau.Text.Trim), ",", ".") & "',"
                        sqlQuery += " '" & Replace(CDec(Me.txtVAT.Text.Trim), ",", ".") & "',"
                        sqlQuery += " '" & Me.CboNhomHH.Text.Trim & "',"
                        sqlQuery += " '" & Me.CboNhomDC.Text.Trim & "',"
                        sqlQuery += " '" & CInt(Me.TxtHanDung.Text.Trim) & "',"
                        sqlQuery += " '" & CInt(Me.TxtMin.Text.Trim) & "',"
                        sqlQuery += " '" & CInt(Me.TxtMax.Text.Trim) & "',"
                        sqlQuery += " '" & Me.txtSDK.Text.Trim & "',"
                        sqlQuery += " '" & Me.txtDieuKien.Text.Trim & "', "
                        sqlQuery += " '" & Me.Cbo_NhaCungCap.Text.Trim & "',"
                        sqlQuery += " '" & Replace(CDec(Me.txtDonGiaMua.Text.Trim), ",", ".") & "', "
                        sqlQuery += " '" & Replace(CDec(Me.txtDonGiaTinh.Text.Trim), ",", ".") & "',"
                        sqlQuery += " '" & Replace(CDec(Me.txtDonGiaHuyen.Text.Trim), ",", ".") & "', "
                        sqlQuery += " '" & Replace(CDec(Me.txtDonGiaXa.Text.Trim), ",", ".") & "',"
                        If Me.chkbox_tinhtrang.Checked Then
                            sqlQuery += " 1, "
                        Else
                            sqlQuery += " 0, "
                        End If
                        sqlQuery += " '" & Me.txtGhiChu.Text.Trim & "'"
                        sqlQuery += ")"
                    Catch ex As Exception
                        MessageBox.Show("thông tin chưa hợp lệ - mời bạn kiểm tra lại!!!")
                        Me.txtMa_HH.Focus()
                    End Try
                    Dim inserted As Integer = moduleDatabaseConn.ExecuteNonQuery(sqlQuery)
                    If inserted = 1 Then
                        MessageBox.Show("Thêm thông tin thành công !")
                        sqlQuery = "SELECT * FROM tbl_hanghoa WHERE ma_nhomhanghoa = '" & Me.CboNhomHH.Text.Trim & "'"
                        Me.loadDanhSachHangHoa()
                        Me.SetclearData()
                    Else
                        MessageBox.Show("Thêm thông tin không thành công: " & globalVariale.sqlMsgError)
                    End If
                Else ' SQLExeption: existedMaQuocGia = -1
                    MessageBox.Show("Lấy dữ liệu bị lỗi: " & globalVariale.sqlMsgError, "Lấy dữ liệu", MessageBoxButtons.OK, MessageBoxIcon.Warning)
                End If
            End If
        End If


    End Sub

    Private Sub btnNew_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles btnNew.Click
        SetclearData()
        txtMa_HH.Focus()
    End Sub


    Private Sub btnDelete1_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles btnDelete1.Click
        Dim txtMaNH As String = Trim(Me.txtMa_HH.Text)
        If txtMaNH = "" Then
            MessageBox.Show("Bạn chưa chọn Mã để xóa !")
        Else
            Dim txtTenNH As String = Trim(Me.txtTen_BD.Text)


            moduleConstants.MessageWarning = "Bạn có muốn xóa " & txtMaNH & "(" & txtTenNH & ") ?"
            If MessageBox.Show(moduleConstants.MessageWarning, globalVariale.msgTitle, MessageBoxButtons.YesNo, MessageBoxIcon.Warning) = MsgBoxResult.Yes Then
                Dim sqlQuery As String = "DELETE FROM tbl_hanghoa WHERE ma_hanghoa = '" & txtMaNH & "'"
                Dim deleting As Integer = moduleDatabaseConn.ExecuteNonQuery(sqlQuery)
                If deleting = 1 Then
                    MessageBox.Show("Xóa thông tin thành công !")
                    sqlQuery = "SELECT * FROM tbl_hanghoa"
                    Me.loadDanhSachHangHoa()
                    SetclearData()
                Else
                    MessageBox.Show("Xóa thông tin không thành công: " & globalVariale.sqlMsgError)
                End If
            End If
        End If
    End Sub

    Private Sub frmHangHoa_load(ByVal sender As Object, ByVal e As System.EventArgs) Handles MyBase.Load
        moduleUtils.setDinhDangVietNam()
        Me.loadDanhSachHangHoa()
        Me.loadDanhSachNhomHH()
        Me.loadDanhSachNhomDC()
        Me.loadDanhSachNhaCungCap()

    End Sub

    Private Sub BtnClose_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles BtnClose.Click
        Me.Close()
    End Sub

    Function checkInput() As Boolean
        Dim result As Boolean = True

        If Me.txtMa_HH.Text.Trim.Length = 0 Then
            MessageBox.Show("Bạn chưa nhập Mã  !")
            result = False
            Exit Function
        End If

        If Me.txtTen_BD.Text.Trim.Length = 0 Then
            MessageBox.Show("Bạn chưa nhập tên biệt dược !")
            result = False
            Exit Function
        End If

        If Me.Cbo_NhaCungCap.Text.Trim.Length = 0 Then
            MessageBox.Show("Bạn chưa chọn nhà cung cấp !")
            result = False
            Exit Function
        End If

        If Me.CboNhomDC.Text.Trim.Length = 0 Then
            MessageBox.Show("Bạn chưa chọn nhóm dược !")
            result = False
            Exit Function
        End If

        If Me.CboNhomHH.Text.Trim.Length = 0 Then
            MessageBox.Show("Bạn chưa chọn nhóm hàng hóa !")
            result = False
            Exit Function
        End If

        Dim value As Double = 0

        Try
            value = CDec(Me.TxtGiaSYT.Text.Trim)
        Catch ex As Exception
            MessageBox.Show("Bạn nhập giá bộ y tế không hợp lệ !")
            result = False
            Exit Function
        End Try

        Try
            value = CDec(Me.txtDonGiaXa.Text.Trim)
        Catch ex As Exception
            MessageBox.Show("Bạn nhập giá xã không hợp lệ !")
            result = False
            Exit Function
        End Try

        Try
            value = CDec(Me.txtDonGiaTinh.Text.Trim)
        Catch ex As Exception
            MessageBox.Show("Bạn nhập giá tỉnh không hợp lệ !")
            result = False
            Exit Function
        End Try

        Try
            value = CDec(Me.txtDonGiaHuyen.Text.Trim)
        Catch ex As Exception
            MessageBox.Show("Bạn nhập giá huyện không hợp lệ !")
            result = False
            Exit Function
        End Try

        Try
            value = CDec(Me.txtDonGiaMua.Text.Trim)
        Catch ex As Exception
            MessageBox.Show("Bạn nhập giá mua không hợp lệ !")
            result = False
            Exit Function
        End Try

        Try
            value = CDec(Me.TxtGiaBan.Text.Trim)
        Catch ex As Exception
            MessageBox.Show("Bạn nhập giá bán không hợp lệ !")
            result = False
            Exit Function
        End Try

        Try
            value = CDec(Me.TxtMax.Text.Trim)
        Catch ex As Exception
            MessageBox.Show("Bạn nhập lượng max không hợp lệ !")
            result = False
            Exit Function
        End Try

        Try
            value = CDec(Me.TxtMin.Text.Trim)
        Catch ex As Exception
            MessageBox.Show("Bạn nhập lượng min không hợp lệ !")
            result = False
            Exit Function
        End Try

        Try
            value = CDec(Me.TxtHanDung.Text.Trim)
        Catch ex As Exception
            MessageBox.Show("Bạn nhập hạn dùng không hợp lệ !")
            result = False
            Exit Function
        End Try

        Try
            value = CDec(Me.TxtQC_Thung.Text.Trim)
        Catch ex As Exception
            MessageBox.Show("Bạn nhập quy cách thùng không hợp lệ !")
            result = False
            Exit Function
        End Try

        Try
            value = CDec(Me.TxtQC_Chan.Text.Trim)
        Catch ex As Exception
            MessageBox.Show("Bạn nhập quy cách bán chẵn không hợp lệ !")
            result = False
            Exit Function
        End Try

        Try
            value = CDec(Me.TxtQC_Le.Text.Trim)
        Catch ex As Exception
            MessageBox.Show("Bạn nhập quy cách bán lẻ không hợp lệ !")
            result = False
            Exit Function
        End Try

        Return result
    End Function

    Private Sub loadDanhSachHangHoa()
        sqlQuery = "SELECT * FROM tbl_hanghoa where ma_nhomhanghoa = '" & CboNhomHH.Text & "'"
        dataHangHoa = moduleDatabaseConn.GetDataTable(sqlQuery)
        Me.grid_DanhSachHangHoa.DataSource = dataHangHoa
    End Sub

    Private Sub loadDanhSachNhaCungCap()
        Dim sqlQuery As String = ""
        sqlQuery = "SELECT ma_nhacungcap, ten_nhacungcap FROM tbl_nhacungcap ORDER BY ma_nhacungcap"
        dataNhomNhaCungCap = moduleDatabaseConn.GetDataTable(sqlQuery)
        Cbo_NhaCungCap.Items.Clear()
        Cbo_NhaCungCap.LoadingType = MTGCComboBox.CaricamentoCombo.DataTable
        Cbo_NhaCungCap.ColumnNum = 2
        Cbo_NhaCungCap.ColumnWidth = "80;337"
        Cbo_NhaCungCap.HighlightBorderColor = Color.Black
        Cbo_NhaCungCap.GridLineHorizontal = True
        Cbo_NhaCungCap.GridLineVertical = True
        Cbo_NhaCungCap.ItemHeight = 17
        Cbo_NhaCungCap.DropDownHeight = 429
        Cbo_NhaCungCap.SourceDataTable = dataNhomNhaCungCap
        Cbo_NhaCungCap.SelectedIndex = 0
    End Sub

    Private Sub loadDanhSachNhomHH()
        Dim sqlQuery As String = ""
        sqlQuery = "SELECT ma_nhom_hanghoa, ten_nhom_hanghoa FROM tbl_nhom_hanghoa ORDER BY ma_nhom_hanghoa"
        dataNhomHangHoa = moduleDatabaseConn.GetDataTable(sqlQuery)
        CboNhomHH.Items.Clear()
        CboNhomHH.LoadingType = MTGCComboBox.CaricamentoCombo.DataTable
        CboNhomHH.ColumnNum = 2
        CboNhomHH.ColumnWidth = "76;274"
        CboNhomHH.HighlightBorderColor = Color.Black
        CboNhomHH.GridLineHorizontal = True
        CboNhomHH.GridLineVertical = True
        CboNhomHH.ItemHeight = 17
        CboNhomHH.DropDownHeight = 457
        CboNhomHH.SourceDataTable = dataNhomHangHoa
        CboNhomHH.SelectedIndex = 0
    End Sub

    Private Sub CboNhomHH_SelectedIndexChanged(ByVal sender As Object, ByVal e As System.EventArgs) Handles CboNhomHH.SelectedIndexChanged
        Try
            Me.TxtTenNhomHH.Text = Me.CboNhomHH.SelectedItem.Col2
            sqlQuery = "SELECT * FROM tbl_hanghoa where ma_nhomhanghoa = '" & CboNhomHH.Text & "'"
            grid_DanhSachHangHoa.DataSource = moduleDatabaseConn.GetDataTable(sqlQuery)
        Catch ex As Exception
            Me.TxtTenNhomHH.Text = ""
        End Try

    End Sub
    Private Sub loadDanhSachNhomDC()
        Dim sqlQuery As String = ""
        sqlQuery = "SELECT ma_nhom_duocchinh, ten_nhom_duocchinh FROM tbl_nhom_duocchinh ORDER BY ma_nhom_duocchinh ASC"
        dataNhomDuocChinh = moduleDatabaseConn.GetDataTable(sqlQuery)
        CboNhomDC.Items.Clear()
        CboNhomDC.LoadingType = MTGCComboBox.CaricamentoCombo.DataTable
        CboNhomDC.ColumnNum = 2
        CboNhomDC.ColumnWidth = "76;175"
        CboNhomDC.HighlightBorderColor = Color.Black
        CboNhomDC.GridLineHorizontal = True
        CboNhomDC.GridLineVertical = True
        CboNhomDC.ItemHeight = 17
        CboNhomDC.DropDownHeight = 457
        CboNhomDC.SourceDataTable = dataNhomDuocChinh
        CboNhomDC.SelectedIndex = 0
    End Sub
    Private Sub CboNhomDC_SelectedIndexChanged(ByVal sender As Object, ByVal e As System.EventArgs) Handles CboNhomDC.SelectedIndexChanged
        Me.TxtTenNhomDC.Text = Me.CboNhomDC.SelectedItem.Col2
    End Sub

    Private Sub DataGridView1_CellClick(ByVal sender As Object, ByVal e As System.Windows.Forms.DataGridViewCellEventArgs) Handles grid_DanhSachHangHoa.CellClick
        If e.RowIndex >= 0 Then
            Dim iRow As Integer = Me.grid_DanhSachHangHoa.CurrentRow.Index
            Me.txtMa_HH.Text = Me.grid_DanhSachHangHoa.Item(Me.MahanghoaDataGridViewTextBoxColumn.Index, iRow).Value
            Me.txtTen_BD.Text = Me.grid_DanhSachHangHoa.Item(Me.TenbietduocDataGridViewTextBoxColumn.Index, iRow).Value
            Me.txtTen_HD.Text = Me.grid_DanhSachHangHoa.Item(Me.TenhoaduocDataGridViewTextBoxColumn.Index, iRow).Value
            Me.TxtDV_Thung.Text = Me.grid_DanhSachHangHoa.Item(Me.DonvithungDataGridViewTextBoxColumn.Index, iRow).Value
            Me.TxtQC_Thung.Text = Me.grid_DanhSachHangHoa.Item(Me.QuicachthungDataGridViewTextBoxColumn.Index, iRow).Value
            Me.TxtDV_Chan.Text = Me.grid_DanhSachHangHoa.Item(Me.DonvibanchanDataGridViewTextBoxColumn.Index, iRow).Value
            Me.TxtQC_Chan.Text = Me.grid_DanhSachHangHoa.Item(Me.QuicachbanchanDataGridViewTextBoxColumn.Index, iRow).Value
            Me.TxtDV_Le.Text = Me.grid_DanhSachHangHoa.Item(Me.DonvibanleDataGridViewTextBoxColumn.Index, iRow).Value
            Me.TxtQC_Le.Text = Me.grid_DanhSachHangHoa.Item(Me.QuicachbanleDataGridViewTextBoxColumn.Index, iRow).Value
            Me.TxtGiaSYT.Text = Format(Me.grid_DanhSachHangHoa.Item(Me.DongiaboDataGridViewTextBoxColumn.Index, iRow).Value, "N2")
            Me.TxtGiaBan.Text = Format(Me.grid_DanhSachHangHoa.Item(Me.DongiabanDataGridViewTextBoxColumn.Index, iRow).Value, "N2")
            Me.TxtChietKhau.Text = Format(Me.grid_DanhSachHangHoa.Item(Me.ChietkhauDataGridViewTextBoxColumn.Index, iRow).Value, "N2")
            Me.txtVAT.Text = Format(Me.grid_DanhSachHangHoa.Item(Me.vatDataGridViewTextBoxColumn.Index, iRow).Value, "N0")

            Me.TxtHanDung.Text = Format(Me.grid_DanhSachHangHoa.Item(Me.HandungDataGridViewTextBoxColumn.Index, iRow).Value, "N0")
            Me.TxtMin.Text = Me.grid_DanhSachHangHoa.Item(Me.MinDataGridViewTextBoxColumn.Index, iRow).Value
            Me.TxtMax.Text = Me.grid_DanhSachHangHoa.Item(Me.MaxDataGridViewTextBoxColumn.Index, iRow).Value
            Me.txtSDK.Text = Me.grid_DanhSachHangHoa.Item(Me.sdkDataGridViewTextBoxColumn.Index, iRow).Value
            Me.txtDieuKien.Text = Me.grid_DanhSachHangHoa.Item(Me.dkbaoquanDataGridViewTextBoxColumn.Index, iRow).Value

            Me.txtDonGiaMua.Text = Format(Me.grid_DanhSachHangHoa.Item(Me.dongia_muaDataGridViewTextBoxColumn.Index, iRow).Value, "N2")
            Me.txtDonGiaTinh.Text = Format(Me.grid_DanhSachHangHoa.Item(Me.dongia_tinhDataGridViewTextBoxColumn.Index, iRow).Value, "N2")
            Me.txtDonGiaHuyen.Text = Format(Me.grid_DanhSachHangHoa.Item(Me.dongia_huyenDataGridViewTextBoxColumn.Index, iRow).Value, "N2")
            Me.txtDonGiaXa.Text = Format(Me.grid_DanhSachHangHoa.Item(Me.dongia_xaDataGridViewTextBoxColumn.Index, iRow).Value, "N2")
            Me.txtGhiChu.Text = Me.grid_DanhSachHangHoa.Item(Me.ghichuDataGridViewTextBoxColumn.Index, iRow).Value
            Dim tinhtrang As Integer = Me.grid_DanhSachHangHoa.Item(Me.tinhtrangDataGridViewTextBoxColumn.Index, iRow).Value

            moduleUtils.setIndexComBo(Me.grid_DanhSachHangHoa.Item(Me.colMaNhaCungCap.Index, iRow).Value, Me.Cbo_NhaCungCap, dataNhomNhaCungCap)
            moduleUtils.setIndexComBo(Me.grid_DanhSachHangHoa.Item(Me.colMaNhomHangHoa.Index, iRow).Value, Me.CboNhomHH, dataNhomHangHoa)
            moduleUtils.setIndexComBo(Me.grid_DanhSachHangHoa.Item(Me.colMaDuocChinh.Index, iRow).Value, Me.CboNhomDC, dataNhomDuocChinh)

            If tinhtrang = 1 Then
                Me.chkbox_tinhtrang.Checked = True
            Else
                Me.chkbox_tinhtrang.Checked = False
            End If
        End If


    End Sub

    Private Sub Button1_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button1.Click
        FrmCrHangHoa.Show()
    End Sub

    Private Sub btnTimKiem_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles btnTimKiem.Click

        If Me.txtMaSearch.Text = "" And Me.txtTenSearch.Text = "" And Me.TextBoxVat.Text = "" Then
            MessageBox.Show("Bạn phải nhập thông tin tìm kiếm !!!")
            Me.txtMaSearch.Focus()
        Else
            If Me.txtMaSearch.TextLength > 0 Then
                sqlQuery = "SELECT *  FROM tbl_hanghoa "
                sqlQuery += " where ma_hanghoa like '%" & Me.txtMaSearch.Text & "%'"
            End If
            If Me.txtTenSearch.TextLength > 0 Then
                sqlQuery = "SELECT *  FROM tbl_hanghoa "
                sqlQuery += " where ten_bietduoc like '%" & Me.txtTenSearch.Text & "%'"
            End If
            If Me.TextBoxVat.TextLength > 0 Then
                sqlQuery = "SELECT *  FROM tbl_hanghoa "
                sqlQuery += " where vat = " & Me.TextBoxVat.Text & ""
            End If
            If Me.txtMaSearch.TextLength > 0 And Me.txtTenSearch.TextLength > 0 Then
                sqlQuery = "SELECT *  FROM tbl_hanghoa "
                sqlQuery += " where ma_hanghoa like '%" & Me.txtMaSearch.Text & "%'"
                sqlQuery += " and  ten_bietduoc like '%" & Me.txtTenSearch.Text & "%'"
            End If
            Me.gridSearch.DataSource = moduleDatabaseConn.GetDataTable(sqlQuery)
        End If
    End Sub

    Private Sub gridSearch_CellClick(ByVal sender As Object, ByVal e As System.Windows.Forms.DataGridViewCellEventArgs) Handles gridSearch.CellClick

    End Sub

    Private Sub gridSearch_DoubleClick(ByVal sender As Object, ByVal e As System.EventArgs) Handles gridSearch.DoubleClick
        Me.TabMain.SelectedTab = Me.TabThongTin
        Dim iRow As Integer = Me.gridSearch.CurrentRow.Index
        Me.txtMa_HH.Text = Me.gridSearch.Item(Me.MahanghoaDataGridViewTextBoxColumn1.Index, iRow).Value
        Me.txtTen_BD.Text = Me.gridSearch.Item(Me.TenbietduocDataGridViewTextBoxColumn1.Index, iRow).Value
        Me.txtTen_HD.Text = Me.gridSearch.Item(Me.TenhoaduocDataGridViewTextBoxColumn1.Index, iRow).Value
        Me.TxtDV_Thung.Text = Me.gridSearch.Item(Me.DonvithungDataGridViewTextBoxColumn1.Index, iRow).Value
        Me.TxtQC_Thung.Text = Me.gridSearch.Item(Me.QuicachthungDataGridViewTextBoxColumn1.Index, iRow).Value
        Me.TxtDV_Chan.Text = Me.gridSearch.Item(Me.DonvibanchanDataGridViewTextBoxColumn1.Index, iRow).Value
        Me.TxtQC_Chan.Text = Me.gridSearch.Item(Me.QuicachbanchanDataGridViewTextBoxColumn1.Index, iRow).Value
        Me.TxtDV_Le.Text = Me.gridSearch.Item(Me.DonvibanleDataGridViewTextBoxColumn1.Index, iRow).Value
        Me.TxtQC_Le.Text = Me.gridSearch.Item(Me.QuicachbanleDataGridViewTextBoxColumn1.Index, iRow).Value
        Me.TxtGiaSYT.Text = Format(Me.gridSearch.Item(Me.DongiaboDataGridViewTextBoxColumn1.Index, iRow).Value, "N2")
        Me.TxtGiaBan.Text = Format(Me.gridSearch.Item(Me.DongiabanDataGridViewTextBoxColumn1.Index, iRow).Value, "N2")
        Me.TxtChietKhau.Text = Format(Me.gridSearch.Item(Me.ChietkhauDataGridViewTextBoxColumn1.Index, iRow).Value, "N2")
        Me.txtVAT.Text = Format(Me.gridSearch.Item(Me.VatDataGridViewTextBoxColumn1.Index, iRow).Value, "N0")

        Me.TxtHanDung.Text = Format(Me.gridSearch.Item(Me.HandungDataGridViewTextBoxColumn1.Index, iRow).Value, "N0")
        Me.TxtMin.Text = Me.gridSearch.Item(Me.MinDataGridViewTextBoxColumn1.Index, iRow).Value
        Me.TxtMax.Text = Me.gridSearch.Item(Me.MaxDataGridViewTextBoxColumn1.Index, iRow).Value
        Me.txtSDK.Text = Me.gridSearch.Item(Me.SdkDataGridViewTextBoxColumn1.Index, iRow).Value
        Me.txtDieuKien.Text = Me.gridSearch.Item(Me.DkbaoquanDataGridViewTextBoxColumn1.Index, iRow).Value

        Me.txtDonGiaMua.Text = Format(Me.gridSearch.Item(Me.DongiamuaDataGridViewTextBoxColumn.Index, iRow).Value, "N2")
        Me.txtDonGiaTinh.Text = Format(Me.gridSearch.Item(Me.DongiatinhDataGridViewTextBoxColumn.Index, iRow).Value, "N2")
        Me.txtDonGiaHuyen.Text = Format(Me.gridSearch.Item(Me.DongiahuyenDataGridViewTextBoxColumn.Index, iRow).Value, "N2")
        Me.txtDonGiaXa.Text = Format(Me.gridSearch.Item(Me.DongiaxaDataGridViewTextBoxColumn.Index, iRow).Value, "N2")
        Me.txtGhiChu.Text = Me.gridSearch.Item(Me.GhichuDataGridViewTextBoxColumn1.Index, iRow).Value
        Dim tinhtrang As Integer = Me.gridSearch.Item(Me.TinhtrangDataGridViewTextBoxColumn1.Index, iRow).Value

        moduleUtils.setIndexComBo(Me.gridSearch.Item(Me.ManhacungcapDataGridViewTextBoxColumn.Index, iRow).Value, Me.Cbo_NhaCungCap, dataNhomNhaCungCap)
        moduleUtils.setIndexComBo(Me.gridSearch.Item(Me.ManhomhanghoaDataGridViewTextBoxColumn.Index, iRow).Value, Me.CboNhomHH, dataNhomHangHoa)
        moduleUtils.setIndexComBo(Me.gridSearch.Item(Me.MaduocchinhDataGridViewTextBoxColumn.Index, iRow).Value, Me.CboNhomDC, dataNhomDuocChinh)
    End Sub
    Private Sub Cbo_NhaCungCap_SelectedIndexChanged(ByVal sender As Object, ByVal e As System.EventArgs) Handles Cbo_NhaCungCap.SelectedIndexChanged
        Try
            Me.txtTenNhaCungCap.Text = Me.Cbo_NhaCungCap.SelectedItem.Col2
        Catch ex As Exception
            Me.txtTenNhaCungCap.Text = ""
        End Try
    End Sub
End Class


